determine if font-smoothing is in effect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Butler

    #1

    determine if font-smoothing is in effect

    Is it possible to determine with javascript or other means if the user has
    any sort of font-smoothing in effect on their os or ua?

    Serif'd fonts don't look so nice on non-smoothed systems, so, i'd rather
    switch to plain old Arial...

    The idea is to detect this fact and then alter the font/s that are used to
    display a website via javascript - modifying the dom tree, I guess.

    Thanks,



  • Lasse Reichstein Nielsen

    #2
    Re: determine if font-smoothing is in effect

    "Joe Butler" <ffffh.no.spam@ hotmail-spammers-paradise.comwri tes:
    Is it possible to determine with javascript or other means if the user has
    any sort of font-smoothing in effect on their os or ua?
    No.
    Serif'd fonts don't look so nice on non-smoothed systems, so, i'd rather
    switch to plain old Arial...
    Or rely on the user's default font? You can probably assume that it works
    for his settings.
    Or let the user pick the font he prefers.
    The idea is to detect this fact and then alter the font/s that are used to
    display a website via javascript - modifying the dom tree, I guess.
    To change the font, you change the CSS rules, not the DOM tree.

    /L
    --
    Lasse Reichstein Nielsen
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Joe Butler

      #3
      Re: determine if font-smoothing is in effect

      OK, shame.

      The default font on FF3 seems to be Times New Roman. This is not such a
      good choice on non-smoothed systems.

      I would have thought to change the font via javascript, that a CSS rule for
      say body would be inserted into the dom tree that overrode the one specified
      in the main css file.

      What do you mean by changing the css rules? Can this be done in javascript
      outside of the dom tree?

      "Lasse Reichstein Nielsen" <lrn.unread@gma il.comwrote in message
      news:abe52zo4.f sf@gmail.com...
      "Joe Butler" <ffffh.no.spam@ hotmail-spammers-paradise.comwri tes:
      >
      >Is it possible to determine with javascript or other means if the user
      >has
      >any sort of font-smoothing in effect on their os or ua?
      >
      No.
      >
      >Serif'd fonts don't look so nice on non-smoothed systems, so, i'd rather
      >switch to plain old Arial...
      >
      Or rely on the user's default font? You can probably assume that it works
      for his settings.
      Or let the user pick the font he prefers.
      >
      >The idea is to detect this fact and then alter the font/s that are used
      >to
      >display a website via javascript - modifying the dom tree, I guess.
      >
      To change the font, you change the CSS rules, not the DOM tree.
      >
      /L
      --
      Lasse Reichstein Nielsen
      DHTML Death Colors:
      <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      Working...