ttf-parser icon indicating copy to clipboard operation
ttf-parser copied to clipboard

Support platform id 7 PLATFORM_ADOBE

Open naivefeeling opened this issue 4 years ago • 6 comments

https://www.freetype.org/freetype2/docs/reference/ft2-truetype_tables.html#tt_platform_xxx

naivefeeling avatar Oct 13 '21 15:10 naivefeeling

Can you provide a font that uses it?

RazrFalcon avatar Oct 13 '21 15:10 RazrFalcon

Looks like this is some weird FT hack. Can you explain the use case? It seems it simply flags that a font uses CFF tables with custom charsets, which we already support. So the question is what you want to do with this data.

RazrFalcon avatar Oct 13 '21 16:10 RazrFalcon

Some Type1 font embedded in pdf files use this platform id.

naivefeeling avatar Oct 14 '21 14:10 naivefeeling

So do you need just a flag? Or do you need something else? Like accessing the encoding table itself.

RazrFalcon avatar Oct 14 '21 15:10 RazrFalcon

I think just a flag is enough for me.

naivefeeling avatar Oct 14 '21 16:10 naivefeeling

This is not as easy as I've thought. We first have to support #33.

RazrFalcon avatar Dec 28 '21 12:12 RazrFalcon

I have added CFF Encoding support. I still have no idea how TT_PLATFORM_ADOBE works, but you can use cff::Table::glyph_index to convert byte/codepoint to glyph ID now.

RazrFalcon avatar Aug 17 '22 19:08 RazrFalcon