RE: JavaScript & Fonts

From: Peter Constable (petercon@microsoft.com)
Date: Tue Nov 03 2009 - 23:48:52 CST

  • Next message: Eric Muller: "Understanding some emoji names and glyphs"

    If it's any help, for browsers hosted on Windows 7, U+221B is supported in the Segoe UI Symbol font.

    Peter

    -----Original Message-----
    From: unicode-bounce@unicode.org [mailto:unicode-bounce@unicode.org] On Behalf Of Michael D'Errico
    Sent: Monday, November 02, 2009 9:20 AM
    To: unicode@unicode.org
    Subject: Re: JavaScript & Fonts

    Thanks for all the replies. It sounds like the unfortunate answer is I need to use an image. I was trying to avoid that due to the need for multiple background colors (perhaps the background can be transparent?
    I'll need to look into that, and now that's way off topic -- if you know the answer, please reply privately, thanks).

    Mike

    Jukka K. Korpela wrote:
    > vanisaac@boil.afraid.org wrote:
    >
    >>> My conclusion is that in cases like this, an author should create a
    >>> suitable image of the character, in the intended environment–in
    >>> practice, a button of the same style as those based on characters
    >>> when rendered in a typical way. That is, to take an image of the
    >>> button rendered using some nice font (DejaVu Sans?) and edit it in a
    >>> graphics program to make it somewhat more legible.
    >>
    >> There is one big problem with this approach, which is that images
    >> don't generally scale.
    >
    > Images can be scaled, and browsers have become better in this. You can
    > use an image in an HTML document and set its height in em units (i.e.
    > relative to font size) in CSS, and browsers will scale it accordingly
    > (preserving the width to height ratio). This is not ideal, and it
    > would be better to be able to use characters, but in a situation like
    > the one discussed, it's probably the best approach in practice. -
    > Besides, the page discussed sets font size in fixed units, thereby
    > declaring text to be non-scaleable (though browsers may ignore that).
    >
    > The question whether we should use a character or an image is a
    > practical one, not a matter of principles. When the question is
    > raised, there is usually at least one considerable drawback in using a
    > character
    > - otherwise one would just use a character and not ask at all.



    This archive was generated by hypermail 2.1.5 : Tue Nov 03 2009 - 23:52:55 CST