(BOn 8-Jan-05, at 2:38 AM, Albert Cahalan wrote:
(B>
(B> I have this now:
(B>
(B> #elif defined(__APPLE__)
(B> loadfonts("/System/Library/Fonts", 0);
(B> loadfonts("/Library/Fonts", 0);
(B> loadfonts("/usr/share/fonts", 0);
(B> loadfonts("/usr/X11R6/lib/X11/fonts", 0);
(B
(BI've added the path to the User's fonts directory to CVS, via a Cocoa (BAPI call.
(B
(B> I'm using *.otf fonts right now. As for the others, I saw a FreeType
(B> patch that would support them via normal filenames.
(B>
(B> Without that patch, there are problems. FreeType has a special
(B> interface for loading via Mac resource forks, but libSDL_ttf
(B> doesn't offer a wrapper for it.
(B>
(B> Well, I suggest you simply try the latest Tux Paint (as of a few
(B> minutes ago) with a recent FreeType and tell us how it goes.
(B
(BMost fonts are being ignored, but a few are loading fine (primarly .ttf (Bfonts). Here is a sampling of the errors I get from the other fonts:
(B
(B[Session started at 2005-01-08 11:37:13 -0700.]
(Bcould not open Apple LiGothic Medium.dfont
(Bcould not open AppleGothic.dfont
(Bcould not open AquaKanaBold.otf
(Bcould not open AquaKanaRegular.otf
(Bcould not open Courier.dfont
(BBad font, 'a' and 'z' match: Geeza Pro Bold.ttf, Geeza Pro, Bold
(BBad font, 'a' and 'z' match: Geeza Pro.ttf, Geeza Pro, Regular
(Bcould not open Geneva.dfont
(Bcould not open Hei.dfont
(Bcould not open Helvetica.dfont
(Bcould not open Keyboard.dfont
(Bcould not open LastResort.dfont
(Bcould not open LucidaGrande.dfont
(Bcould not open Monaco.dfont
(Bcould not open Osaka.dfont
(Bcould not open OsakaMono.dfont
(Bcould not open Symbol.dfont
(Bcould not open Times.dfont
(Bcould not open ZapfDingbats.dfont
(BBad font, 'a' and 'z' match: [EMAIL PROTECTED](B Pro W3.otf, Hiragino Mincho Pro, W3
(BBad font, 'a' and 'z' match: [EMAIL PROTECTED](B Pro W6.otf, Hiragino Mincho Pro, W6
(Bcould not open #Gungseouche.dfont
(Bcould not open #HeadlineA.dfont
(Bcould not open #PCmyoungjo.dfont
(Bcould not open #Pilgiche.dfont
(BBad font, 'a' and 'z' match: AlBayan.ttf, Al Bayan, Plain
(BBad font, 'a' and 'z' match: AlBayanBold.ttf, Al Bayan, Bold
(Bcould not open AmericanTypewriter.dfont
(B...
(B...
(B
(BAs well, the following line in tuxpaint.c is producing a compile error:
(B
(Bconst char *restrict const suffixes[] = {"ttf", "otf", "pfa", "pfb", (B"dfont", "ttc",};
(B
(B/Users/mfuhrer/Projects/TuxPaint/tuxpaint-cvs/tuxpaint/src/tuxpaint.c: (BIn function `loadfonts':
(B/Users/mfuhrer/Projects/TuxPaint/tuxpaint-cvs/tuxpaint/src/tuxpaint.c: (B14226: error: invalid use of `restrict'
(B/Users/mfuhrer/Projects/TuxPaint/tuxpaint-cvs/tuxpaint/src/tuxpaint.c: (B14226: error: invalid use of `restrict'
(B
(BI can get around it by removing "restrict".
(B
(BMartin
(B
(B_______________________________________________
(BTuxpaint-dev mailing list
([email protected]
(Bhttp://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to