]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4876/1: Add fontname replacing function for CFF (OTF/OTC) fonts
authorMasamichi Hosoda <trueroad@trueroad.jp>
Sat, 25 Jun 2016 01:52:44 +0000 (10:52 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Mon, 4 Jul 2016 12:46:34 +0000 (21:46 +0900)
commitfa2596b6ec273e7d82907f97acf0c65559b3c1b4
tree4dbfaf4cbb35177715c0435fd8b3bb3c85580d74
parent6acce8f4c900bee88c85a45b9ed1b29983891469
Issue 4876/1: Add fontname replacing function for CFF (OTF/OTC) fonts

For CFF (OTF/OTC) fonts,
FT_Get_Postscript_Name ()
in FreeType 2.6+ gets the name in 'name' table.
However, we want the name in 'CFF' table instead of in 'name' table
because output postscript file is embedded only 'CFF' table of the font.

They are inconsistent for some OpenType/CFF Collection fonts (OTC).

This function can get the name in 'CFF' table.

TODO: Check conflicts between fonts which have same name in 'CFF' table
but different name in 'name' table.
lily/include/open-type-font.hh
lily/open-type-font.cc