GnomeFont is privatized
- From: Lauris Kaplinski <lauris helixcode com>
- To: gnome-print helixcode com
- Cc: gnome-devel-list gnome org
- Subject: GnomeFont is privatized
- Date: Sat, 8 Jul 2000 03:54:27 +0200 (CEST)
Well, as I promised, GnomeFont internals are now private, so both source
and binary compatibility of GnomeFont object is broken. The general
interfaces remained compatible still, so programs not reading font
internal attributes should work without recompile.
Most attributes can be read with straightforward methods:
gdouble gnome_font_get_size (const GnomeFont * font)
etc.
Still there are some minor semantic changes:
gnome_font_get_name () does not necessarily return PostScript name, for
the latter there is gnome_font_get_ps_name (). The former will
(hopefully) one day return localized semi-official name.
Instead of gnome_font_get_glyph () there is gnome_font_lookup_default () -
which (hopefully) will be extended to take into account different
languages.
The most basic metric and shape access methods are (at moment)
ArtPoint * gnome_font_get_glyph_stdadvance (font, glyph, advance)
ArtDRect * gnome_font_get_glyph_stdbbox (font, glyph, bbox)
const ArtBpath * gnome_font_get_glyph_stdoutline (font, glyph)
Which will (hopefully) one day return metrics according to set script
direction.
There is full-featured gtkobject GnomeFontFace in place of
GnomeFontUnsized and GnomeFontMap.
P.S.
I have not incremented gnome-print version number, so if anybody has
more incompatible changes pending those can be thrown in. If there are
none, it should become 0.21.
Lauris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]