[XeTeX] Problem with ocrb10.otf ligature 'fi'

Pander pander at users.sourceforge.net
Mon Jun 13 08:43:19 CEST 2011


On 2011-06-13 01:01, Ross Moore wrote:
> Hello Pander,
> 
> On 13/06/2011, at 6:26 AM, Pander wrote:
> 
>> Hi all,
>>
>> I have discovered a problem with ocrb10.otf the ligatures are not workig
>> correctly in xelatex. ttx from fonttools reports only these common
>> ligatures: ff-ffi-ffl-fi-fl. See example below for result. How to solve
>> this?
> 
> Where did you obtain your OCR fonts from?

TeX Live 2010

/usr/local/texlive/2010/texmf-dist/fonts/opentype/public/ocr-b-outline/ocrb10.otf

> I just downloaded the demo from here:
>       http://www.barcodesoft.com/ocr_font.aspx
> and the font file names are  OCRB.otf , OCRBI.otf , OCRBIII.otf ,
> and OCRBIV.otf  in OTF format.
> 
> Given that this is meant to be a mono-spaced font, I'd not expect
> to have any ligatures at all.

Me too. Would be better if they were not in there at all to avoid these
kind of errors all together.

Maybe TeX Live should use these OTF files?

> Changing your code example to:
> 
>>>> {\fontspec{OCRB}abc ff ffi ffl fl fi}
>>>> \bigskip
>>>>
>>>> {\fontspec[Ligatures={Required,Common,Rare}]{OCRB}abc ff ffi ffl fl fi}
>>>> \bigskip
>>>>
>>>> {\fontspec[Ligatures={NoRequired,NoCommon,NoRare}]{OCRB}abc ff ffi ffl fl fi}
>>>> \bigskip
> 
> the result is attached below.
> 
> 
> 
> 
> 
> On the other hand, if you get the free example from:
> 
>    http://ansuz.sooke.bc.ca/page/fonts#ocrb
> 
> and look at the example document  ocr.pfb  then you
> can see that there are many examples of  fi ffi etc.
> using no ligatures.
> 
> Indeed looking at the repertoire using FontBook (on Mac OS X 10.6)
> there are no fi or fl etc. ligatures.
> 
> So it is not at all clear that what you are asking for makes
> much sense, with this font.
> 
> 
> But then maybe you have a version of OCRB that comes from a 
> completely different source? In which case, we need more details
> before further testing can be done.
> 
>>
>> Regards,
>>
>> Pander
> 
> 
> 
> Hope this helps,
> 
> 	Ross
> 
> 
> ------------------------------------------------------------------------
> Ross Moore                                       ross.moore at mq.edu.au 
> Mathematics Department                           office: E7A-419      
> Macquarie University                             tel: +61 (0)2 9850 8955
> Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
> ------------------------------------------------------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list