Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1

    Default Web Designer text scaleing pts vs pix

    When I enter text size in pts then preview in browser the text gets streched out to the right. When I enter text in pix (multiplying the value by 1.33) the value is immediately converted back to the original pt value, but the browser preview is now correct. Why would the browser preview not work with the default font sizeing system?
    IP

  2. #2
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Web Designer text scaleing pts vs pix

    Brousers that use windows text rendering engine (all browsers on Windows except for Safari), can only display whole pixels font sizes. So if you set size to 10pt which is roughly equal to 13.33px, browser can use either 13px or 14px font based on it's rounding rule (this differs among browsers).
    The only way to avoid it is to explicitly set font sizes in pixels.
    John.
    IP

  3. #3
    Join Date
    Mar 2009
    Posts
    4,501

    Default Re: Web Designer text scaleing pts vs pix

    Quote Originally Posted by covoxer View Post
    Brousers that use windows text rendering engine (all browsers on Windows except for Safari), can only display whole pixels font sizes.
    I was using the Finance Theme template and noticed that the two header texts (in Times New Roman) are 45.64 and 21.33 pix, respectively. When previewing the page, the text stayed the same. How is this possible?
    IP

  4. #4
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Web Designer text scaleing pts vs pix

    Quote Originally Posted by Boy View Post
    I was using the Finance Theme template and noticed that the two header texts (in Times New Roman) are 45.64 and 21.33 pix, respectively. When previewing the page, the text stayed the same. How is this possible?
    It was exported as image.
    John.
    IP

  5. #5
    Join Date
    Mar 2009
    Posts
    4,501

    Default Re: Web Designer text scaleing pts vs pix

    Of course, I could have guessed...
    IP

 

 

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
  •