Re: Font Resize
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 06:20:30 GMT
On Sun, 24 Jun 2007 02:36:41 GMT, "Karl Uppiano"
<karl.uppiano@xxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
On each size event, we calculated the largest font that would fit into the
available space (vertical and horizontal), by iterating through the font
sizes starting at 1 point, and creating a new font, looking at the font
metrics (advance and height + descent, IIRC). When the font got too big, we
went back to the previous point size, and used that one. We never found a
more efficient way to do this, but it was actually fast enough. The screen
and the font would resize in real time as the user dragged the window
border.
you could cache the results.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: Font Resize
- From: Karl Uppiano
- Re: Font Resize
- References:
- Font Resize
- From: Joseph Gruber
- Re: Font Resize
- From: Karl Uppiano
- Font Resize
- Prev by Date: Re: Write once, run anywhere?
- Next by Date: Re: The Modernization of Emacs: terminology buffer and keybinding
- Previous by thread: Re: Font Resize
- Next by thread: Re: Font Resize
- Index(es):
Relevant Pages
|