[poppler] Read some more info from the Font Descriptor
Kristian Høgsberg
krh at bitplanet.net
Wed Jul 6 08:58:02 PDT 2005
Alright, just commit it as you think it should be, we'll see how it
works out when we use the API later on.
Kristian
Albert Astals Cid wrote:
> I'm calmed.
>
> Isn't it obvious why i want to use an enum? The use you want to give to the
> API is irrelevant. Would you suggest storing the name of weedays using a int
> instead of using an enum? This is the same situation, FontStretch has 9
> possible values and FontWeight has other 9 possible values, using an int for
> a variable that has 9 possible values is simply bad design.
>
> But if it is needed so that you accept my patch tell me which int values you
> want me to give to the stretch variable as I'm not smart enough to know how
> to represent "Condensed" using an int.
>
> Albert
>
> A Dilluns 04 Juliol 2005 03:24, vàreu escriure:
>
>>Albert Astals Cid wrote:
>>
>>>Ok, so the master wants ints for those both attributes, i assume you want
>>>me to store 100, 200, 300, 400, 500, 600, 700, 800 and 900 for FontWeight
>>>but which values should i give to FontStretch?
>>>
>>>Albert
>>
>>Albert, could you please calm down and explain, in technical terms, why
>>you think my suggestion is bad and how using enums is better? Maybe
>>we're just envisioning different uses for this API; you haven't
>>described how you plan to use this, so maybe I'm just missing the bigger
>>picture.
>>
>>thanks,
>>Kristian
>
>
>
> ______________________________________________
> Renovamos el Correo Yahoo!
> Nuevos servicios, m�s seguridad
> http://correo.yahoo.es
More information about the poppler
mailing list