Mantis - Squeak
Viewing Issue Advanced Details
922 TrueType minor always 03-04-05 15:13 09-12-07 01:45
ned  
 
normal  
new 3.8  
open  
none    
none  
0000922: TT*FontReaders don't handle fonts with just a Unicode (platform 0) character map
On Thursday 03 March 2005 2:08 pm, John M McIntosh wrote:
> I'll note that TTCFontReader>>processCharacterMappingTable: entry
>
> has
>
> (pID = 1 or:[pID = 3]) ifTrue:[
>
> This is checking for macintosh or windows character mapping however I
> attempted to read in a random font, picking
>
> /Library/Fonts/Corsiva.ttf
>
> That fails with unknown character mapping because we check for mapping
> type 1 or 3 only. Now according to
>
> http://developer.apple.com/fonts/TTRefMan/RM06/Chap6name.html#ID [^]
>
> says that pID = 0 means
> 0 Unicode Indicates Unicode version
>
> So I'm wonder if any one is working on reading those font types?

The attached changeset fixes this for all but platform=3,specific=0 (Windows symbol) fonts (like, for instance, Marlett).

My idea was to just take such fonts and load their glyphs at $A through whatever so they could be typed easily. However, I didn't get that working yet, and I'm too busy to finish it.
child of 0006570assigned tim A Mother for font and font test problems 
 UnicodeCharMapsOK-nk.5.cs [^] (18,491 bytes) 03-04-05 16:18

Notes
(0001229)
ned   
03-04-05 16:19   
v5 fixes the windows symbol fonts too.

Needs testing, especially with TTCFonts.