freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] Freetype2 and graphic raster


From: David Turner
Subject: Re: [Devel] Freetype2 and graphic raster
Date: Mon, 29 Oct 2001 14:15:26 +0100

Hello Laurent,

> I've got 2 problems :
> 
> - The size of characters as set in the PCL file, for example 12Cpi (12 
> character per inch) gives the exact contrary when used with the
> FT_Set_Char_Size function.
> I mean 10 Cpi is smaller than 12 Cpi - it should be the contrary.
> Therefore i use this method to have the proper proportions:
> 
> ftError = FT_Set_Char_Size(pftFace, 0, (128*64)/iPointSize, 300, 300);
> (I know this is ugly, sorry)
> 
> What wrong between Cpi and character size ?
>
nothing really, they're simply not the same thing !!

character size is expressed in "points" (a physical distance like inch or 
millimeter)
and this is converted using the device resolution into pixel sizes

As for "Character per inch", the only way to properly convert this to
a pixel size (or a point size) is to know what "character" exactly means
in PCL, and I can't answer this..


> - The other problem is of greater concern to me
> the "...ffff..." line above should be a graphic line like this 
> "...---------...".
> Can the library render those characters (they are beyond the 127th ASCII) or 
> not ?
>
Can't answer this one. Looks like a bug in your code or the PCL font driver
you're using..

Regards,

- David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]