Re: Absolute font sizes
- From: Owen Taylor <otaylor redhat com>
- To: Behdad Esfahbod <behdad behdad org>
- Cc: gtk-devel-list gnome org, Tim Janik <timj imendio com>, Kristian Rietveld <kris imendio com>
- Subject: Re: Absolute font sizes
- Date: Wed, 01 Nov 2006 07:59:35 -0500
On Tue, 2006-10-31 at 19:30 -0500, Behdad Esfahbod wrote:
> On Tue, 2006-10-31 at 16:59 -0500, Owen Taylor wrote:
> > On Tue, 2006-10-31 at 15:46 -0500, Behdad Esfahbod wrote:
> > > On Tue, 2006-10-31 at 12:02 +0100, Kristian Rietveld wrote:
> > > > Hey Behdad,
> > >
> > > Hey Kris,
> > >
> > > > We noticed this week that nothing in GTK+ currently checks whether the
> > > > font size returned by pango_font_description_get_size() is absolute or not.
> > >
> > > This is a very unfortunate side effect of the fact that absolute size
> > > was added in a much later version than normal sizes. And indeed a
> > > horrible API design choice to add
> > > pango_font_description_get_size_is_absolute() instead of
> > > pango_font_description_get_absolute_size().
> >
> > And .. how would you implement the latter? :-)
>
> Make size and absolute_size two separate fields. Setting one will unset
> the other.
How would that be better then the current setup?
- Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]