[XeTeX] discovering script support

Jonathan Kew jfkthame at gmail.com
Tue Jun 21 00:00:24 CEST 2016


On 20/6/16 21:59, maxwell wrote:
> On 2016-06-20 16:20, Zdenek Wagner wrote:
>> otfinfo --scripts font-file.otf
>
> Thanks, that's what I needed.  For some reason otfinfo doesn't show up
> with 'apropos' on my machine...

As Zdeněk notes, otfinfo is a handy way to look into fonts.

Another option, for people who might not have otfinfo handy, is to use 
XeTeX's OpenType inspection primitives; attached is a short file that 
will report the scripts found in an OpenType font (change the 
declaration at the top to specify the font of interest). Run it with 
plain xetex:

$ xetex listscripts.tex
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2015/dev) 
(preloaded format=xetex)
  restricted \write18 enabled.
entering extended mode
(./listscripts.tex
script 0: tag = 1634885986 = 0x61726162 = 'arab'
script 1: tag = 1668903532 = 0x6379726C = 'cyrl'
script 2: tag = 1735550315 = 0x6772656B = 'grek'
script 3: tag = 1751474802 = 0x68656272 = 'hebr'
script 4: tag = 1818326126 = 0x6C61746E = 'latn'
  )
No pages of output.
Transcript written on listscripts.log.

JK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: listscripts.tex
Type: application/x-tex
Size: 1102 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20160620/c7a5727b/attachment.tex>


More information about the XeTeX mailing list