~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/lib/arch/mac/README

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
This is the readme of the freetype.hqx archive in the contrib/mac
 
3
subdirectory.  Please note that the FreeType team does *not* support the
 
4
Macintosh platform due to lack of knowledge.  All questions regarding the
 
5
code should be sent to both David Williss and the freetype-devel list.
 
6
 
 
7
 
 
8
----------------------------------------------------------------------------
 
9
 
 
10
 
 
11
These are CodeWarrior projects for building the FreeType library on a Macintosh
 
12
I've only provided PPC projects here, but building for 68K shouldn't be hard.
 
13
There are two directories here (OK, "folders").  One contains a project for
 
14
building freetype.ppc.lib and the other is for freetype.ppc.dll.  (I havn't
 
15
actually tested the DLL yet.)
 
16
 
 
17
The Macintosh stores TrueType fonts in a "Fonts" folder under the "System"
 
18
folder.  There is a standard MacOS API for finding this folder, so I use it.
 
19
However, the fonts aren't normal flat files.  They have all the data in
 
20
resources in the resource fork.  Each font is an 'sfnt' resource, and each
 
21
file can have more than one 'sfnt' resource.  
 
22
 
 
23
To get at them, I made a copy of ttmmap.c from the Unix implementation and
 
24
modified it to load/release the resource and lock/unlock the handle as needed.
 
25
This only required a change to the open and close functions.  After that, it
 
26
works just as if it was using Unix memory mapping.
 
27
 
 
28
One thing however.  Because of the bizarre scheme for storing the fonts, I
 
29
made up a way of specifying the font filename.  
 
30
 
 
31
        fonts:/fontfile/fontname
 
32
        
 
33
Where fonts:/ is a literal string that means "the fonts folder", fontfile is
 
34
the name of the actual file and fontname is the name of the 'sfnt' resource.
 
35
Currently, this is the only thing it understands.  It might be nice if some
 
36
day (2.0 maybe?) ttfile.c and ttmmap.c wern't mutialy exclusive and it could
 
37
decide which method to use based on the filename or something.
 
38
 
 
39
Another thing that I had to change to make this work.  It seems that Macintosh
 
40
TrueType fonts have no OS/2 table, so ttload.c needs to be modified to make
 
41
that nonfatal, at least on a Macintosh.
 
42
 
 
43
---
 
44
 
 
45
David Williss
 
46
MicroImages, Inc.
 
47
dwilliss@microimages.com