FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » width measurements?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
width measurements? [message #176332] Fri, 23 December 2011 02:45 Go to next message
Michael Joel is currently offline  Michael Joel
Messages: 42
Registered: October 2011
Karma: 0
Member
em is font height. ex is x height.
Is there anything for width of fonts?

Thanks
Mike
Re: width measurements? [message #176333 is a reply to message #176332] Fri, 23 December 2011 03:14 Go to previous messageGo to next message
The Natural Philosoph is currently offline  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 Go to previous messageGo to next message
Gregor Kofler is currently offline  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 #176336 is a reply to message #176332] Fri, 23 December 2011 09:44 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
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)


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: width measurements? [message #176337 is a reply to message #176336] Fri, 23 December 2011 13:47 Go to previous messageGo to next message
The Natural Philosoph is currently offline  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 Go to previous messageGo to next message
Denis McMahon is currently offline  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 Go to previous messageGo to next message
Michael Joel is currently offline  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 Go to previous message
houghi is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: r/w internal array pointer
Next Topic: counting the digits in a number, exponential format problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 02:17:23 GMT 2024

Total time taken to generate the page: 0.02313 seconds