Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Implement font loading for TrueTypeFonts #181

Closed
wants to merge 6 commits into from

3 participants

Julian Viereck Limin Shen Juriy Zaytsev
Julian Viereck

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.

Limin Shen

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

Julian Viereck

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

Sorry, I don't get your question :/

Julian Viereck

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

Julian Viereck jviereck referenced this pull request
Closed

Implement font loading #231

Juriy Zaytsev
Collaborator

This should be closed, right?

Juriy Zaytsev
Collaborator

Closing this now that there's font support

Juriy Zaytsev kangax closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 24, 2012
  1. Julian Viereck
  2. Julian Viereck

    Backup progress

    jviereck authored
  3. Julian Viereck

    Backup progress

    jviereck authored
  4. Julian Viereck

    Working version

    jviereck authored
  5. Julian Viereck

    Final version?

    jviereck authored
  6. Julian Viereck

    Cleanup

    jviereck authored
Something went wrong with that request. Please try again.