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

fonts for BackendGL need to match functionality in svg backend #24

Closed
martinjrobins opened this issue Jun 16, 2018 · 5 comments
Closed

Comments

@martinjrobins
Copy link
Collaborator

At the moment, the BackendGL uses a single font that must be in the a hard-coded directory. Be nice if the functionality was the same as the SVG backend. I.e. can use any of the locally install fonts, or perhaps even download a web font if requested.

@martinjrobins
Copy link
Collaborator Author

note: font files in Ubuntu can be located via:

fc-list | grep "partial name here"

@martinjrobins
Copy link
Collaborator Author

@martinjrobins
Copy link
Collaborator Author

@martinjrobins
Copy link
Collaborator Author

So for this I need to search for a font name in the standard font directories. The names of the font files don't seem very consistent, so was thinking of searching for substrings. As for searching though directories, there is boost, or C++17 filesystem. Not keen or requiring C++17 or including something as large as boost for this. Do you know of anything else @fcooper8472?

martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
@martinjrobins
Copy link
Collaborator Author

Using dirent.h. This is standard for linux, and I've included a windows port from here https://github.com/tronkko/dirent

martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
martinjrobins added a commit to martinjrobins/trase that referenced this issue Jun 20, 2018
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

1 participant