Re: Font Resize



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
.



Relevant Pages

  • Re: OE has gone large print
    ... So, tomorrow, I'll once again try to copy all my .dbx folders from old 'defective' identity to this new one. ... All of a sudden, the scroll bar wouldn't move, the entire window began to shimmy. ... the font size is out of whack - too big. ... Some old e-mails look ok, but if I attempt to forward and add content, my normal Arial 12 looks two sizes bigger. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • OE has gone large print
    ... inbox mail in the view window. ... the entire window began to shimmy. ... the font size is ... my normal Arial 12 looks two sizes bigger. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: shrinkable/expandable layout with CSS?
    ... create a layout that is shrinkable or expandable when a user drag it, ... for objects like text and images to vary in size depending on window size. ... fonts apply based upon ancestor font sizes, ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: DCSS: Sigmund Must Die: The Movie
    ... set Crawl to windowed 1280x720 (HD 720 resolution), ... sizes by 1 point, disabled those redundant blue tooltips, turned off ... font anti-aliasing and recorded the whole window at 30 FPS. ...
    (rec.games.roguelike.misc)
  • Re: Font Resize
    ... by iterating through the font ... and the font would resize in real time as the user dragged the window ... if memory serves we did avoid recalculating the whole thing every time; ...
    (comp.lang.java.programmer)