[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] pixel size - diacritics
From: |
Ed Keith |
Subject: |
Re: [Freetype] pixel size - diacritics |
Date: |
Mon, 08 Oct 2001 10:41:01 -0700 |
Hi Wallace,
Three words: "Remember the diacritics"
Typographic point size typically relates to the EM size height for numeric and
uppercase characters such as A, B, C, 1, 9, etc. Many fonts however include
characters with diacritic accents that extend above the point size character
height, examples: A,Å, E,Ê, O,Õ, etc. Diacritic accents extend above the EM
size and require that the pixel height of the font be larger than simply the
point size height for numerics and uppercase characters. Unfortunately until
the font is opened there is no way (that I know of) to tell the actual pixel
height of a font with elements such as diacritics that extend outside the base
EM square size.
Hope this helps...
Ed
At 03:56 AM 10/8/01, Wallace Chigona wrote:
>Hi guys,
>I had asked this question before, now let me rephrase it a bit.
>
>I want to render characters either as filled polygons or as bitmaps.
>For the polygons, I obtain the outline of the font and render it as
>normal polygon in openGL. For bitmaps I use freetype and just transfer
>the bitmap using openGL.
>
>My problem is with the polygons: When I render the coordinates which I
>obtain from freetype, the object is (very) smaller than the bitmap
>equivalent. I have to scale the polygon so that it is visible. I don't
>want to do the scaling in openGL, I would like to obtain an outline
>whose size is (almost) equal to the bitmap.
>
>I tried this formular which I obtained from freetype documentation:
>pixel_Size = pointSize * resolution/72;
>pixel_coord = grid_coord * pixel_size /EM_size;
>
>The EM_size is = 1000, my resolution = 89. Still the sizes which I am
>getting are smaller and I have to scale the glyphs.
>
>What am I missing?
>
>regards,
>
>Wallace
>
>_______________________________________________
>Freetype mailing list
>address@hidden
>http://www.freetype.org/mailman/listinfo/freetype