[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help!
From: |
crusius_at_stanford . edu |
Subject: |
Re: need help! |
Date: |
Thu, 02 Nov 2000 22:37:48 -0800 |
hi there. i am writing an application that accepts user input and uses
freetype (if you really want to know, a terminal emulator). the
problem:
* the user specifies the font width in pixels. the font is always
monospaced, so the value is used as the advance for all glyphs.
* i use FT_Set_Pixel_Sizes(font_face,font_width,0) to set the font
size.
* the bitmaps are rendered in a square of font_width x font_width,
so that there is a horrible big black margin for each character.
what happens, i think, is that the user 'font_width' is really being
respected only in 'font_height', since obviously the characters are
taller than wider.
the question becomes: how can i set the *font width* of a font??? i
want to do it in a way that i can use 'font_width' for the font
advance and get correct rendering. i don't want to use advances from
glyphs, and i don't want the character height to be taken into account
when setting the font size.
--
Cesar Augusto Rorato Crusius __o __o __o __o __o
Stanford University _`\<, _`\<, _`\<, _`\<, _`\<,
e-mail:address@hidden (_)/(_) (_)/(_) (_)/(_) (_)/(_) (_)/(_)
www.stanford.edu/~crusius
o _ _ _
__o __o __o __o /\_ _ \\o (_)\__/o (_)
_`\<, _`\<, _`\<, _`\<, _>(_) (_)/<_ \_| \ _|/' \/
(_)/(_) (_)/(_) (_)/(_) (_)/(_) (_) (_) (_) (_)' _\o_
He who sacrifices functionality for ease of use
Loses both and deserves neither
- Re: need help!,
crusius_at_stanford . edu <=