[poppler] Read some more info from the Font Descriptor

Albert Astals Cid aacid at kde.org
Wed Jun 29 08:01:47 PDT 2005


Well i disagree with the integers thing, mostly because which integers choo=
se?=20
1, 2, 3, 4, ..? That is the same as an enum, the other possiblity is using=
=20
the same integers fontconfig uses, that has two different problems:

 -  First, we have to either include fontconfig.h in this file to be able o=
f=20
doing the assignment or copy the numbers at hand. Including fontconfig just=
=20
for this does not seem right as this class as nothing to do with fontconig,=
=20
in the other side copying the numbers by hand is just plain wrong.

 - Second, there is not a 1 to 1 match between the values that fontconfig h=
as=20
and the values the pdf spec has, we have to choose the correspondence=20
somewhere but again this file does not seem the right place to do that.

Albert

A Dimecres 29 Juny 2005 02:38, v=C3=A0reu escriure:
> Albert Astals Cid wrote:
> > Hi this patch reads font family, font weifght and font stretch from font
> > descriptor if they are available. That will help querying fontconfig
> > about the font.
>
> This looks good, and should be a good basis for doing good font
> matching.  I think it makes more sense to represent strecth and weight
> as just integers, though.  We're going to use these values with
> fontconfig for building a FcPattern, and fontconfig represents these
> properties as integers so I think it makes sense to make it easy to work
> with fontconfig.
>
> thanks,
> Kristian

		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es


More information about the poppler mailing list