lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cairo plans


From: Werner LEMBERG
Subject: Re: Cairo plans
Date: Sat, 04 Sep 2021 12:38:10 +0000 (UTC)

>>> Most PDF readers have a mapping from Adobe-Japan1 CID to Unicode
>>> code points as follows.
>>> https://github.com/adobe-type-tools/mapping-resources-pdf/blob/master/pdf2unicode/Adobe-Japan1-UCS2
>>
>> Is it impossible to discover this mapping from the OTF file alone?
> 
> If I understand correctly, yes.

I guess Masamichi means that the mapping is not part of the font
itself.

>> Where does the OTF file say it is using encoding Adobe-Japan1-UCS
> 
> It is described in ROS in the CFF table.
> https://docs.microsoft.com/en-us/typography/opentype/spec/cff
> http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/font/pdfs/5176.CFF.pdf
> 
> ROS means `Registry-Ordering-Supplement`.
> For the current HaranoAjiMincho-Regular.otf,
> Registry is `Adobe`, Ordering is `Japan1`, and Supplement is `7`.
> So it is an `Adobe-Japan1-7` font.
> 
> PDF readers use Adobe-Japan1-UCS2 for `Adobe-Japan1-*` fonts.

Hopefully there is a solution that makes Cairo do the mapping work for
us...


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]