Implement font loading for TrueTypeFonts #181

Closed
wants to merge 6 commits into
from

Conversation

Projects
None yet
3 participants
@jviereck
Contributor

jviereck commented Jun 24, 2012

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

This comment has been minimized.

Show comment Hide comment
@salami162

salami162 Aug 5, 2012

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

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

@jviereck

This comment has been minimized.

Show comment Hide comment
@jviereck

jviereck Aug 8, 2012

Contributor

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

Sorry, I don't get your question :/

Contributor

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

This comment has been minimized.

Show comment Hide comment
@jviereck

jviereck Aug 8, 2012

Contributor

@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.

Contributor

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 referenced this pull request Nov 21, 2012

Closed

Implement font loading #231

@kangax

This comment has been minimized.

Show comment Hide comment
@kangax

kangax Apr 24, 2013

Collaborator

This should be closed, right?

Collaborator

kangax commented Apr 24, 2013

This should be closed, right?

@kangax

This comment has been minimized.

Show comment Hide comment
@kangax

kangax Oct 9, 2013

Collaborator

Closing this now that there's font support

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