Results 1 to 2 of 2

Thread: Font Metrics

  1. #1
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default Font Metrics

    Here's a simple visualization of what the different values of font metrics mean, and what negative font sizes means in regard to Windows:



    I'm posting it here as a reference for further font discussions on the #clanlib channel.

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    The CSS documentation regarding font sizes: http://www.w3.org/TR/REC-CSS2/syndat...lue-def-length

    Based on this terribly poor documentation, I'm going to assume that the CSS documentation considers pixel values converted to point values for font selection. Thus, the pixel size also refers to the font height excluding the internal leading.

    Last, the CSS documentation annoyingly assumes that the monitor DPI is 90 instead of 96 (thanks guys!), so their reference pixel size requires the size to be 6% taller than the number of pixels specified in the CSS. However, I'm gonna ignore that last bit, since the user would expect px to be monitor pixels. I wonder what web browsers do in this department.

Similar Threads

  1. Font Problems
    By Vish in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 07-26-2008, 07:14 PM
  2. Font rendering acceleration in v0.9
    By z42 in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 02-18-2008, 12:09 PM
  3. Font loading and the characters
    By Anvilfolk in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 09-14-2007, 05:08 PM
  4. Suggestions for modification to the ClanLib 0.9 Font API
    By rombust in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 08-20-2007, 09:28 AM
  5. I need help using CL_Font with a System font on the Mac
    By eoliveri in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 08-07-2007, 01:59 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •