Closed cis555 closed 8 months ago
Do you know how to access the layers with plain luaotfload interfaces? (I am guessing this is not possible in XeTeX)
There is no such thing as glyph layers in TrueType/OpenType fonts. This font was created with FontForge and the layers are a proprietary FontForge extension meant to be used by FontForge when re-editing the font. The glyf
table has only one glyph and it is the layer 1 showed above.
To create colored glyphs, you can use COLR
table (but it is not supported by FontForge).
Based on Khaled's comments I think we have to close this one, nothing that can be done within fontspec sorry.
Sometimes a glyph is composed of different layers. Random example:
But a command of type
\char[layer=2]"1F0AE
is not available at the moment. Would it be possible to create an addition that allows access to the contents of the different layers? Then outputs of the following type could be possible:PS: I added
ExampleFontWithLayers.ttf
, where\char0
contains the shown situation with layers. ExampleFontWithLayers01.zip