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

Implement font loading for TrueTypeFonts #181

Closed
wants to merge 6 commits into from

Conversation

jviereck
Copy link
Contributor

This loads TrueTypeFonts using the FreeType library and adds the necessary bits to handle the loaded fonts.

See the new example under examples/font.js for how to use this. It's a little bit ugly that the developer has to specify the weight and style of the font manually, but the FreeType library doesn't give something out of the box. It's "just" about parsing the OS/2 table of the font files to extract this information, but I don't wanted to do this with this pull request.

Should fix #53.

@salami162
Copy link

I couldn't find <ft2build.h> in the src directory. Do we need this file to build the src??

@jviereck
Copy link
Contributor Author

jviereck commented Aug 8, 2012

I couldn't find in the src directory. Do we need this file to build the src??

Sorry, I don't get your question :/

@jviereck
Copy link
Contributor Author

jviereck commented Aug 8, 2012

@salami162, sorry, the file name you mentioned was not rendered in the UI.

The ft2build.h file is from the freetype project. Pulling this in requires to have the ft2 library installed.

@jviereck jviereck mentioned this pull request Nov 21, 2012
@kangax
Copy link
Collaborator

kangax commented Apr 24, 2013

This should be closed, right?

@kangax
Copy link
Collaborator

kangax commented Oct 9, 2013

Closing this now that there's font support

@kangax kangax closed this Oct 9, 2013
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.

better font support
3 participants