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

External fonts #397

Merged
merged 2 commits into from
Jan 14, 2020
Merged

External fonts #397

merged 2 commits into from
Jan 14, 2020

Conversation

neoancient
Copy link
Member

@HammerGS discovered that on Windows the font selection combo box does not necessarily show all fonts installed on the system. I was not able to determine the reason (hampered by not having a Windows system to experiment with) but I found a solution involving recursively searching the data/fonts directory for any *.ttf files and registering them with the graphics environment. This also allows use of a font for printing record sheets without installing it on the system (for whatever reason someone might want to do that). I also took the precaution of adding data/fonts to .gitignore to prevent accidentally committing proprietary font files.

Fonts installed in Windows do not necessarily show up in the font selection combo box in the printing configuration. This also allows use of a particular font for record sheet printing without installing it on the system.
@neoancient neoancient merged commit e51b0b5 into master Jan 14, 2020
@neoancient neoancient deleted the external_fonts branch January 14, 2020 20:20
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

Successfully merging this pull request may close these issues.

2 participants