字體相關開源庫

https://github.com/PhenX/php-font-lib

This library can be used to:

  • Read TrueType, OpenType (with TrueType glyphs), WOFF font files
  • Extract basic info (name, style, etc)
  • Extract advanced info (horizontal metrics, glyph names, glyph shapes, etc)
  • Make an Adobe Font Metrics (AFM) file from a font

http://ttf2pt1.sourceforge.net/
TTF2PT1 is a modification of Andrew Weeks TTF2PFA True Type to Postscript Type 3 converter. Which will convert Most True Type Fonts to an Adobe Type 1 .pfa file. And also the other font formats supported by the FreeType library to an Adobe Type 1 .pfa file. And the BDF fonts to an Adobe Type 1 .pfa file. Yet another use is as a hinting engine: feed it an unhinted or poorly hinted Adobe Type 1 font through the FreeType library and get it back with freshly generated hints. If you want .pfb files, don't despair: they can be produced too. The files produced by default are in human readable form, which further needs to be encoded with the t1utilities, to work with most software requiring type 1 fonts. But for the lazy people ttf2pt1 includes a built-in portion of t1utilities as well.

https://github.com/lzl124631x/ttf_parser

TTF Parser can load TrueType fonts, display glyphs and dump out glyph data to XML files.

https://github.com/PhenX/ttf2ufm

https://github.com/googlefonts/fontcrunch

fontcrunch is a program that optimizes TrueType font splines - a "simplify" command. It tries to create a visual match for the spline using the smallest number of TrueType points. It is notable for counting on-curve points interpolated between two off-curve points as "free," making useful filesize savings.

https://github.com/luckyaibin/truetypefontparsetoy

讀取ttf ttc文件,解析裏面的glyph的x,y座標,並且畫出輪廓.本來打算完善,但是能找到的資料太少,未能完成ttf readtime auto hint,以及光柵化.<<TrueType字體引擎的研究與實現.pdf>>

https://github.com/Janak-Nirmal/truetype_to_svg

https://github.com/seirion/TrueType (C++)

https://github.com/fonttools/fonttools (python)

https://github.com/googlefonts/fontcrunchfontcrunch (python)

is a program that optimizes TrueType font splines - a "simplify" command. It tries to create a visual match for the spline using the smallest number of TrueType points. It is notable for counting on-curve points interpolated between two off-curve points as "free," making useful filesize savings. It depends on fonttools.

https://github.com/spiderofmean/thorax_truetype

https://github.com/dluco/ttf

https://github.com/revivalizer/refonter

https://github.com/kseo/sfnt2woff

https://github.com/oss-forks/stb_truetype

https://github.com/Jim-Eckerlein/fontgen FontGen TrueType Font to PNG Fontmap rasterizer Reads a TrueType Font file using FreeType and composes a PNG font file using an instruction file telling which characters should be loaded and where to place them.

https://github.com/joede/embedded-font-gen

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章