字体相关开源库

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

扫描二维码关注公众号,回复: 5365675 查看本文章

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

猜你喜欢

转载自blog.csdn.net/g0ose/article/details/81319998