nanogui: how is the baseline value defined?


Previous by date: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Alexander Stohr
Next by date: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Greg Haerr
Previous in thread: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Alexander Stohr
Next in thread: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Greg Haerr

Subject: AW: [nanogui] how is the baseline value defined?
From: "Alexander Stohr" ####@####.####
Date: 18 Jul 2005 20:54:41 +0100
Message-Id: <000601c58bd2$61015f00$9b01a8c0@starlightpc>

I think i copied that patch into my NX working tree.
As of now i can see all the very same on embedded
and on my i386/x11 version of NX.

lets illustrated, for the default font i do get:
  13/11
for any char value (meaning height/upper half).

for *.ttf i do get for the font metrics:
  23/18 arial (TH=19)
  22/16 cour (TH=19)
  22/17 times (TH=19)
and i do get those char metrics for the string "g":
  14/4 arial (TH=19)
  11/3 cour (TH=19)
  13/4 times (TH=19)

that means, the baseline is measured from top to
bottom for the font metrics but from bottom up
for the text rendering. we should not harden that
sort of an inconsistency in form of a NX release.

-Alex.

-----Ursprüngliche Nachricht-----
Von: Paul Bartholomew ####@####.####
Gesendet: Montag, 18. Juli 2005 21:05
An: ####@####.#### ####@####.####
Betreff: RE: [nanogui] how is the baseline value defined?


I don't know if this is what you are seeing or not, but I found a bug in the
FreeType2 support code (engine/font_freetype2.c) related to baseline.  It
was subtracting from "y" instead of adding (or the other way around - I
forget).

I fixed it to match font_freetype.c (FreeType1) - so they now both work the
same.  I don't know if this matches other fonts, but at least all FreeType
code should operate the same.

I'm pretty sure that my changes to font_freetype2.c are in the "patch"
directory on microwindows.org:
    ftp://microwindows.censoft.com/pub/microwindows/patch-0.92/

(I think the mods are in "freetype2_changes.zip")

- Paulb


Previous by date: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Alexander Stohr
Next by date: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Greg Haerr
Previous in thread: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Alexander Stohr
Next in thread: 18 Jul 2005 20:54:41 +0100 Re: how is the baseline value defined?, Greg Haerr


Powered by ezmlm-browse 0.20.