Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Size #90

Open
in-fluxed opened this issue Feb 7, 2023 · 1 comment
Open

Font Size #90

in-fluxed opened this issue Feb 7, 2023 · 1 comment

Comments

@in-fluxed
Copy link

How do you change the font size? I tried changing it in the generate_fonts.sh in the scripts folder. I changed it to 8 and re-uploaded it but everything seems to be the same. What am I doing wrong?

eg:
python3 fontconvert.py regular_font 8 SourceSansPro-Regular.ttf OpenSans-Regular.ttf --two-color --compress > ../lib/Fonts/regular_font.h

@cgreening
Copy link
Collaborator

Hmm, very strange - the line height should be driven off the regular font.

virtual int get_line_height()
{
   return m_regular_font->advance_y;
}

There is a script you should run to generate the fonts (there are bold and italic that are required as well) - just edit it to change the font size:

https://github.com/atomic14/diy-esp32-epub-reader#fonts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants