Re: If A PITA Client Wants A Non Standard Font



In article <g70ca1$ql4$1@xxxxxxxx>, "Nik Coughlin" <nrkn.com@xxxxxxxxx>
wrote:

"dorayme" <doraymeRidThis@xxxxxxxxxxxxxxx> wrote in message
news:doraymeRidThis-CADB92.09214702082008@xxxxxxxxxxxxxxxxxxxxxxxxxxx
I was particularly unhappy that it does not scale until reload. Still, I
expect if you don't use tiny body text font like some developers, this
will be less likely to occur.

Very easy to work around in JavaScript.

Put a div somewhere on the page, 1em wide. Take it out of the page flow,
position absolute, whatever. Doesn't matter that much because it's got
nothing in it and has a transparent background anyway.

Using JS store its width in pixels. Create a timer, 10 times a second is
fine, doesn't put any strain on the browser and is near enough to instant
for all intents and purposes. When the timer fires check if the width of
the 1em div in pixels matches the stored width. If it doesn't update the
stored width and refresh the sifr.

Yes, I am sure you are right and that's interesting, Nick. Any URLs that
demo this? I am sure less than 10 times a sec would be fine too.

I suppose that the original idea was pushed because it gave a quality
scaleability (notwithstanding what some might regard as a small drawback
- 'so what if a (presumably very legible enough) *heading* does not
scale when you change the text size' - and did not break accessibility
guidelines. And if people have no js enabled, it would not matter that
much just as it would not matter if they did not have the right Flash
enabled (they would see the fallback HTML heading font).

Not sure how many times I have said this, but it is a great shame that a
simple, image of text (prepared and served in ways I have previously
described) does not look good on all browsers or platforms. It is so
easy to do!

1. Make a nice heading in Illustrator or Photoshop or wherever.

2. Prepare it at the biggest reasonably likely size it will be viewed at
(use common sense)

3. Size it in ems in the CSS

4. Use whatever best practice fallback technique you want if image fails
to load

And watch it perform brilliantly enough (or hopelessly - usually in
Internet Explorer).

Having said that, I am a bit of a fan - at least for now - of HTML text.
It is not as if there is not quite a variety. To my eye, in the right
design, it looks well enough!

--
dorayme
.



Relevant Pages

  • [OT] Re: The chart of comp.lang.c
    ... but it is certainly not a platform-specific matter. ... Font colours, or even font types for that ... It isn't a matter of being a part of the language standard. ... The compiler actually ...
    (comp.lang.c)
  • Re: overflow:auto in IE
    ... really like to get rit of that scroll bar when it isn't needed. ... I have a working site and whether or not it makes sence doesnt matter, ... I worry about your code when you are putting px font sizes and px ... dorayme- Skjul tekst i anførselstegn - ...
    (alt.html)
  • Re: overflow:auto in IE
    ... I have a working site and whether or not it makes sence doesnt matter, ... You have not explained what your head {overflow: auto;} is doing. ... I worry about your code when you are putting px font sizes and px ... if you are not sure what is causing the problem... ...
    (alt.html)
  • Weird font problems in Cystal 9 up to 11
    ... no matter what I try I can not fix it. ... font I use in them, show up as weird strange characters. ... in our office that can view my reports just fine. ... weirdness....only text boxes do it. ...
    (microsoft.public.vb.crystal)