|
Re: width measurements? [message #176333 is a reply to message #176332] |
Fri, 23 December 2011 03:14 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
Michael Joel wrote:
> em is font height. ex is x height.
> Is there anything for width of fonts?
>
> Thanks
> Mike
No, not that I have found.
The way I have played this is to uses a class style, and then using at
least three platforms - usually a Mac, Linux and Windoze virtual
machine, selectively select fonts and order them to get as near as
possible the right and similar appearances..knowing that the user can in
any case bugger around with zoom factors and override style defined fonts..
...but at least get to the point where your web page looks MORE OR LESS
similar on all platforms with the default fonts that MOST people will
have on those platforms, and the smart arses who override the 'operating
system defaults' will know enough to un override it to get the pahe
looking OK agian, and if not sod em.
If you want really accurate fonts, download a PDF with embedded fonts in
it, or render the text into a bitmap..and teh devil take the hindmost.
HTML is NOT a precise page description language, its a text markup
language. Go with the flow..
|
|
|
Re: width measurements? [message #176334 is a reply to message #176332] |
Fri, 23 December 2011 08:23 |
Gregor Kofler
Messages: 69 Registered: September 2010
Karma: 0
|
Member |
|
|
Am 2011-12-23 03:45, Michael Joel meinte:
> em is font height. ex is x height.
> Is there anything for width of fonts?
Are you sure you wanted to post this in a PHP newsgroup?
Gregor
|
|
|
|
Re: width measurements? [message #176337 is a reply to message #176336] |
Fri, 23 December 2011 13:47 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
Álvaro G. Vicario wrote:
> El 23/12/2011 3:45, Michael Joel escribió/wrote:
>> em is font height. ex is x height.
>> Is there anything for width of fonts?
>
> I guess this was for a CSS group. Whatever, I had always believed that
> "em" means "the _width_ of letter M":
>
> http://en.wikipedia.org/wiki/Em_(typography)
>
>
It is but the fonts are fixed aspect ratio..
|
|
|
Re: width measurements? [message #176338 is a reply to message #176332] |
Fri, 23 December 2011 14:16 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On Thu, 22 Dec 2011 21:45:19 -0500, Michael Joel wrote:
> em is font height. ex is x height.
> Is there anything for width of fonts?
what is your php code, what do you expect it to do, what do you think it
does wrong?
Rgds
Denis McMahon
|
|
|
Re: width measurements? [message #176339 is a reply to message #176334] |
Fri, 23 December 2011 15:30 |
Michael Joel
Messages: 42 Registered: October 2011
Karma: 0
|
Member |
|
|
On Fri, 23 Dec 2011 09:23:16 +0100, Gregor Kofler
<usenet(at)gregorkofler(dot)com> wrote:
> Am 2011-12-23 03:45, Michael Joel meinte:
>> em is font height. ex is x height.
>> Is there anything for width of fonts?
>
> Are you sure you wanted to post this in a PHP newsgroup?
>
> Gregor
No actually. I do not know why I posted to this group?! Obviously not
thinking. Sorry...
Thanks for the answer that were provided though...
Mike
|
|
|
Re: width measurements? [message #176340 is a reply to message #176333] |
Fri, 23 December 2011 18:27 |
houghi
Messages: 45 Registered: September 2011
Karma: 0
|
Member |
|
|
The Natural Philosopher wrote:
> If you want really accurate fonts, download a PDF with embedded fonts in
> it, or render the text into a bitmap..and teh devil take the hindmost.
http://code.google.com/p/pcdtr/ and a test on
http://pcdtr.joaomak.net/example_1.9/
Advantage is that it does not require the font to be installed on the
remote machine. Disadvantage might be the load on the server.
Ideal for headlines. Used it in the past and it works just nice.
houghi
--
This is written under the inluence of the following:
> Artist : The Phantom Of The Opera
> Song : Wishing You Were Somehow Here Again
> Album : The Phantom Of The Opera
|
|
|