Fwd: Fonts (was Re: [etoys-dev] Wording in Clouds)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Fonts (was Re: [etoys-dev] Wording in Clouds)

Stéphane Ducasse


Begin forwarded message:

> From: Bert Freudenberg <[hidden email]>
> Date: July 31, 2009 6:30:19 PM CEDT
> To: etoys dev <[hidden email]>
> Subject: Re: Fonts (was Re: [etoys-dev] Wording in Clouds)
>
>
> On 31.07.2009, at 08:31, Andreas Raab wrote:
>
>> Hi -
>>
>> I've integrated Bert's fix as well as support for .ttc collections:
>>
>> http://tracker.squeakland.org/browse/SQ-283
>>
>> While working on this I realized how outdated the etoys image is  
>> when it comes to TTF support. I was trying to bring in some other  
>> necessary fixes but that wouldn't work at all, so I've added a  
>> filed out version of TTCFont.st from 3.10.2-trunk which has all the  
>> necessary fixes but probably some other issues. With this version  
>> things *almost* work:
>>
>> * Install TTFileDescription.5.cs
>> * Install TTCFont.st
>> * Install WhiteSpaceFixes.2.cs
>
>
> I tried on a Mac, first failure in #fontOffsetsInFile:. There are  
> fonts that are tagged 'true' instead of (0 1 0 0):
>
> http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html
>
> "The values 'true' (0x74727565) and 0x00010000 are recognized by the  
> Mac OS as referring to TrueType fonts."
>
> That's easy to fix.
>
> Then there are bitmap fonts like "NISC18030.ttf" which cannot be  
> loaded, they fail when looking for the 'head' table.
>
> The list of *ttf on the Mac isn't really long, most fonts are not in  
> truetype format apparently:
>
> ('Al Bayan' 'Andale Mono' 'AppleMyungjo' 'Arial' 'Arial Black'  
> 'Arial Hebrew' 'Arial Narrow' 'Arial Rounded MT Bold' 'Arial Unicode  
> MS' 'Ayuthaya' 'Baghdad' 'Brush Script MT' 'Chalkboard' 'Comic Sans  
> MS' 'Corsiva Hebrew' 'Courier New' 'DecoType Naskh' 'Devanagari MT'  
> 'Euphemia UCAS' 'Georgia' 'Gujarati MT' 'Gurmukhi MT' 'Impact'  
> 'InaiMathi' 'Kailasa' 'Kokonor' 'Krungthep' 'KufiStandardGK'  
> 'Microsoft Sans Serif' 'Mshtakan' 'Nadeem' 'New Peninim MT'  
> 'Plantagenet Cherokee' 'Sathu' 'Silom' 'Tahoma' 'Times New Roman'  
> 'Trebuchet MS' 'Verdana' 'Webdings' 'Wingdings' 'Wingdings 2'  
> 'Wingdings 3')
>
> There were 5 more fonts but their names were mangled (IIRC fonts can  
> store their meta data in various languages and encodings).
>
> I tried to install "Tahoma" but got the message that the subfamily  
> "Negreta" (span. "black") is not recognized in  
> #indexOfSubfamilyName:. After fixing that it worked fine.
>
> Attaching a changeset with my fixes (though maybe the bitmap  
> detection should not just rely on errors).
>
> If anyone else is testing on a Mac you might find this helpful (and  
> if you do, review and push, thanks):
>
> http://tracker.squeakland.org/browse/SQ-243
>
> - Bert -

> _______________________________________________
> etoys-dev mailing list
> [hidden email]
> http://lists.squeakland.org/mailman/listinfo/etoys-dev


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

ttfMac-bf.1.cs (3K) Download Attachment