The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Font Lookups in VW

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Font Lookups in VW Posted: Jan 16, 2007 2:52 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Font Lookups in VW
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

While we were developing the initial versions of WithStyle we discovered some interesting font lookup issues in VisualWorks.

First and foremost was to do with font sizing. It appeared that font sizes were slightly larger for the the equivalent lookup in VW to all other windows applications. This puzzled us until we found the following page: http://wiki.cs.uiuc.edu/VisualWorks/How+to+match+the+font+size+between+VW+and+Windoze+apps

However once we'd applied this patch we found that the default system fonts now had wacky font sizes. With help from Steve Kelly we were able to fix these font size change issues with several overrides and re-initializations.

We also found that on Mac, some of the generic font names that you use on Linux and Windows simply failed to lookup on Mac. We had to 'harden' the way font matching works in VW as well as mapping generic font names such as serif -> times, monospace -> courier, etc.

So, all of this stuff combined made for some messy stuff that was hidden away in WithStyle. Yesterday I separated this code out in to its own package so that you can choose whether you want to use Windows standard font size lookups and generic font names on Mac. I've published this code as Font-Lookup in to public store. Your choice.. go for it.

Read: Font Lookups in VW

Topic: Another spam attempt Previous Topic   Next Topic Topic: Code Quality in Eclipse

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use