[ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
Hello, Not sure if this is the right list to ask this on, but I am pretty confused about Type1 fonts in general and have to start somewhere. I'm developing a small app called Fonty Python and have made some assumptions based on the files I found on my Kubuntu system and on (scrappy) web

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
Hi, On Wed, 9 Jan 2008 10:24:45 +0200 Donn [EMAIL PROTECTED] wrote: Essentially: Is an AFM or a PFM file needed *at all*? Can I simply focus on PFB and PFA files and link then into ~/.fonts and call that font 'installed? In my understanding, AFM and PFM are not essential for the system that can

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Dmitry Timoshkov
[EMAIL PROTECTED] wrote: However, it is theoretically possible for AFM PFM to have the metrics which is different from PFA PFB. I don't know recent utilization is popular. AFM and PFM files also may contain kerning data which is not available in .pfa/.pfb files. -- Dmitry.

Re: [ft-devel] face-family_name, usage and values

2008-01-09 Thread Werner LEMBERG
While debugging a bug for the gd's extension in php (crafted ttf makes it crash), I was wondering if it is expected to have a NULL face-font_family or if there is a function to fetch it instead of accessing the face member directly. Is it always nullified if no font family has been found or

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
On Wednesday, 09 January 2008 11:11:00 Dmitry Timoshkov wrote: AFM and PFM files also may contain kerning data which is not available in .pfa/.pfb files. Okay so potentially, -1 on the vote. Making AFM and PFM important again. How important do you thing that extra data is on a modern Gnu/Linux

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Dmitry Timoshkov
Donn [EMAIL PROTECTED] wrote: On Wednesday, 09 January 2008 11:11:00 Dmitry Timoshkov wrote: AFM and PFM files also may contain kerning data which is not available in .pfa/.pfb files. Okay so potentially, -1 on the vote. Making AFM and PFM important again. How important do you thing that

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Dmitry Timoshkov
Donn [EMAIL PROTECTED] wrote: So, I take it you would advise that the corresponding metric files should be in the same folder as the glyph files? It depends on how applications handle that. -- Dmitry. ___ Freetype-devel mailing list

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
Hi, On Wed, 9 Jan 2008 17:11:00 +0800 Dmitry Timoshkov [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: However, it is theoretically possible for AFM PFM to have the metrics which is different from PFA PFB. I don't know recent utilization is popular. AFM and PFM files also may contain

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
FreeType doesn't care about additional data in afm/pfm files, it's applications and users who care. For instance a decent typesetting application must require reasonable metrics and kerning data to be available for professional fonts. Oh, now that you mention it, I recall that Freetype does

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Werner LEMBERG
So, I take it you would advise that the corresponding metric files should be in the same folder as the glyph files? No, there's no reason for that. It really depends on the application where it searches the files. Am I right to assume the links are: PFB -- PFM and PFA -- AFM No. PFM is

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
No, the relationship is independent. If you scan Bitstream's PS Type1 font provided for X11, you can find the pair of PFB and AFM. Most PS font package provides PS font and AFM but often lacks PFM. I gather that there must be some file somewhere that is describing the relationships between

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
On Wednesday, 09 January 2008 11:51:46 Werner LEMBERG wrote: No. PFM is a special (binary) format of AFM used on Windows only. You can completely ignore them. So PBA,PBF - AFM Are those new types or typos? PBA? PBF? So, to clarify, you advise that: 1. If I find a PFB file without an AFM,

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
On Wed, 9 Jan 2008 11:49:41 +0200 Donn [EMAIL PROTECTED] wrote: Am I right to assume the links are: PFB -- PFM and PFA -- AFM No, the relationship is independent. If you scan Bitstream's PS Type1 font provided for X11, you can find the pair of PFB and AFM. Most PS font package provides PS font

Re: [ft-devel] face-family_name, usage and values

2008-01-09 Thread Pierre
Hi Werner, Thanks for your answer! On Jan 9, 2008 10:27 AM, Werner LEMBERG [EMAIL PROTECTED] wrote: While debugging a bug for the gd's extension in php (crafted ttf makes it crash), I was wondering if it is expected to have a NULL face-font_family or if there is a function to fetch it

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
Hi, On Wed, 9 Jan 2008 12:27:38 +0200 Donn [EMAIL PROTECTED] wrote: On Wednesday, 09 January 2008 11:51:46 Werner LEMBERG wrote: No. PFM is a special (binary) format of AFM used on Windows only. You can completely ignore them. So PBA,PBF - AFM Are those new types or typos? PBA? PBF? Oh,

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
On Wednesday, 09 January 2008 12:47:00 [EMAIL PROTECTED] wrote: One of the decision we have to consider for first is: ~/.fonts should include the files missing outline data? Yeah, that's the thing, although I am fuzzy on the meaning of 'outline' here. At present, fontconfig does not search

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Werner LEMBERG
PBA,PBF - AFM Are those new types or typos? Typos, sorry. [In the following, I assume that you want to get metrics, right?] So, to clarify, you advise that: 1. If I find a PFB file without an AFM, just use the PFB (i.e. link into ~/.fonts). 2. If I find a PFB with a partner AFM

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Werner LEMBERG
What is considered a font, right now, is based entirely on the extension of the filename. .ttf,.otf,.ttc,.pfb with .pfa in the works. On Unix boxes, this is a bad idea. The `classical' way to find out the contents of a file is to use the `file' program which compares the (beginning of the)

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread Donn
On Unix boxes, this is a bad idea. The `classical' way to find out the contents of a file is to use the `file' program Good point. I suppose file extensions work 'well enough' for me. I think most designers will have files with extensions already attached, this being a Windows-world after

[ft-devel] Reporting minor issues

2008-01-09 Thread Charles A. Landemaine
Hello, Last year I set up this site that shows how to have sharp fonts on Linux: www.sharpfonts.com Since then, I have had several messages from people reporting minor font rendering issues. I think these reports may help the Freetype project to improve the font rendering algorithm. Please let me

Re: [ft-devel] face-family_name, usage and values

2008-01-09 Thread Pierre
On Jan 9, 2008 12:56 PM, Werner LEMBERG [EMAIL PROTECTED] wrote: Without a detailed look into the sources I think this is a correct assumption. Do you expect something different? I was unsure, my tests with the various ft tools in the command lines show it NULL. I tried to be sure

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread George Williams
On Wed, 2008-01-09 at 00:24, Donn wrote: .PFA files These are a new twist, just found one today. I do not know if they also get matched with some metric file. I see many .AFM files around and in one folder: PFA files contain exactly the same data as a PFB, they are a hex (ASCII) dump rather

Re: [ft-devel] language ID on MacOS is used? (Re: Dynalab SJIS cmap)

2008-01-09 Thread George Williams
On Tue, 2008-01-08 at 23:38, [EMAIL PROTECTED] wrote: There is a scenario that I don't want to think: TrueType font has multiple cmap subtables with same platform ID and platform-specific encoding ID but different language IDs. This is indeed possible. Apple made a mistake when they assigned

Re: [ft-devel] language ID on MacOS is used? (Re: Dynalab SJIS cmap)

2008-01-09 Thread mpsuzuki
On 09 Jan 2008 06:39:33 -0800 George Williams [EMAIL PROTECTED] wrote: On Tue, 2008-01-08 at 23:38, [EMAIL PROTECTED] wrote: There is a scenario that I don't want to think: TrueType font has multiple cmap subtables with same platform ID and platform-specific encoding ID but different language

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
On Wed, 9 Jan 2008 13:32:29 +0200 Donn [EMAIL PROTECTED] wrote: [In the following, I assume that you want to get metrics, right?] As a quick summary: Fonty Python is meant to, acting independently of fontconfig: 1. Let one browse to any folder and see (rendered via PIL) what fonts are in it.

[ft-devel] Left bearing in Dynalab DFHsm5.ttc true type font is not taken in account

2008-01-09 Thread Boris Letocha
Hi David, Werner and others, I just found regression between 2.1.9 and 2.2.0 version of Freetype, reproducible in ftview (It probably also work correctly in 2.1.10, but this version I was not able to compile on Windows using jam and VC 2005). It happens on Dynalab fonts, for example DFHsm5.ttc

Re: [ft-devel] Understanding Type1 fonts

2008-01-09 Thread mpsuzuki
Hi, I wish if this Werner's post is appropriate to continue the discussion of the font format to be supported by Fonty Python. On Wed, 09 Jan 2008 12:07:45 +0100 (CET) Werner LEMBERG [EMAIL PROTECTED] wrote: Are these worth supporting? I don't think I have one on my entire Kubuntu system.

[ft-devel] ft2demos/graph/grfill.c compile error on VC

2008-01-09 Thread Allan Yang, Jian Hua - SH
Error information: ..\..\..\graph\grfill.c(139) : error C2065: 'NULL' : undeclared identifier ..\..\..\graph\grfill.c(139) : error C2099: initializer is not a constant ..\..\..\graph\grfill.c(148) : error C2065: 'NULL' : undeclared identifier ..\..\..\graph\grfill.c(148) : error C2099: