Re: Absolute font sizes
- From: Behdad Esfahbod <behdad behdad org>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org, Tim Janik <timj imendio com>, Kristian Rietveld <kris imendio com>
- Subject: Re: Absolute font sizes
- Date: Tue, 31 Oct 2006 19:30:11 -0500
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.
> - Owen
--
behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]