[MPEG-OTSPEC] Colour fonts and PDF
Jonathan Kew
jfkthame at gmail.com
Sat Feb 6 12:50:23 CET 2021
On 06/02/2021 04:28, Chris Lilley wrote:
> Sure, here it is.
>
> I don't know how to inspect PDF internals to see what is actually in there.
What flavor of "chromatic font" was used here? I found a reference to it
at https://www.fontself.com/colorfontweek/valentine-edition-2019 where
it appears that "Magical Unicorn Neue Pro" is an OpenType-SVG font, not
OpenType/COLR. So unless there's a separate COLR version available
somewhere, I'm guessing that's what you used.
As far as I can see, it doesn't appear that the color (SVG) glyphs got
included in the embedded font at all.
I've had somewhat better success generating PDFs with color (COLR)
glyphs: the attached example displays fine in both Adobe Reader and
Apple Preview. But if I copy/paste the text from it, both applications
yield extra "garbage" characters after the emoji character,
corresponding to the separate layers of the color glyph.
So even this isn't really an "embedded color font"; the generating
application (Firefox, in this case) has decomposed the glyph into its
layers and drawn each of them separately. Inspecting the embedded font
confirms that the COLR/CPAL tables are absent; it just has the
individual outlines for each layer.
JK
> On 2021-02-05 20:44, Jonathan Kew wrote:
>> On 05/02/2021 18:28, Chris Lilley wrote:
>> > And yes, I tried just now and, while the chromatic font could be
>> > embedded in PDF, Acrobat gave up and didn't even display the monochrome
>> > fallback.
>>
>> I'm curious if you tried any other viewers?
>>
>> Can you share your sample PDF for testing purposes?
>>
>> JK
>> _______________________________________________
>> mpeg-otspec mailing list
>> mpeg-otspec at lists.aau.at
>> https://lists.aau.at/mailman/listinfo/mpeg-otspec
>
>
> _______________________________________________
> mpeg-otspec mailing list
> mpeg-otspec at lists.aau.at
> https://lists.aau.at/mailman/listinfo/mpeg-otspec
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.pdf
Type: application/pdf
Size: 11424 bytes
Desc: not available
URL: <https://lists.aau.at/pipermail/mpeg-otspec/attachments/20210206/7f5d8702/attachment.pdf>
More information about the mpeg-otspec
mailing list