문제

I'm looking for a simple way to add a glyph to an existing true type font. I'm wondering if there exists a library (C++ or C#) or a command line tool to support that functionality because generating a TTF from scratch seems to be a really complex task.
The background for this question is that we would like to develop a tool that is able to add a glyph to a font. The glyph would be defined as an outline consisting of multiple contours that are consisting of lists of points (on curve and off curve).

도움이 되었습니까?

해결책

To the best of my knowledge, I have not seen such a commandline tool/library.

Generating a font may be complex but modifying an existing font can be just as bad.

When you add a glyph to an existing font, you will need to specify additional things along with it( e.g. unique character code, metrics values, etc). Furthermore you will also need to update quite a few tables in the font file(eg cmap, loca, maxp, etc), depending on the nature of new outline.

Basically I don't think there is a simple way to add a glyph.

The best thing I can think of is to use a font editor tool to add your glyphs/create a new font (e.g. FontForge http://fontforge.sourceforge.net/).

다른 팁

You basically cannot do this (except with some open-licenced fonts which allow derivative works).

This is not because it is impossible, but because it is illegal. Fonts are copyright.

I suggest you find another way to solve whatever problem prompted the question.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top