Re: Font size and screen resolution



On 30 Jan 2002, Lars Clausen wrote:

This has now been fixed, it was some pointer error that I'd missed
(freetype does a great job of totally confusing the user about what is a
pointer and what is not:).  I can now render the text, except it's
inverted and longer than it should be:)

To keep the exciting sports commentary up: The CVS version now has correct
(non-inverted) rendering including zoom levels.  The font is nicely
anti-aliased at all levels, yum!  It's not usable yet, though, as 1) it
doesn't do centering right, 2) it crashes on font selection (so you can't
left-align the text:), and 3) exporting text crashes.  I'm thinking 1) is
some fairly simple problem, 2) is because the font selection isn't geared
for seperation of font name and style, and 3) I'm not sure about, probably
a problem with string widths.  I will have to go now, anybody who wants to
give a shot at either problem, go ahead.  In particular the utf8 stuff in
draw_string() gives me the willies.  FreeType claims to do Unicode.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]