Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4130 > unrolled thread

width measurements?

Started byMichael Joel <no@please.com>
First post2011-12-22 21:45 -0500
Last post2011-12-23 14:16 +0000
Articles 8 — 6 participants

Back to article view | Back to comp.lang.php


Contents

  width measurements? Michael Joel <no@please.com> - 2011-12-22 21:45 -0500
    Re: width measurements? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-23 03:14 +0000
      Re: width measurements? houghi <houghi@houghi.org.invalid> - 2011-12-23 19:27 +0100
    Re: width measurements? Gregor Kofler <usenet@gregorkofler.com> - 2011-12-23 09:23 +0100
      Re: width measurements? Michael Joel <no@please.com> - 2011-12-23 10:30 -0500
    Re: width measurements? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-12-23 10:44 +0100
      Re: width measurements? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-23 13:47 +0000
    Re: width measurements? Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-23 14:16 +0000

#4130 — width measurements?

FromMichael Joel <no@please.com>
Date2011-12-22 21:45 -0500
Subjectwidth measurements?
Message-ID<foq7f79cjjkv6tcvf5ateup0tphgjupfib@4ax.com>
em is font height. ex is x height.
Is there anything for width of fonts?

Thanks
Mike

[toc] | [next] | [standalone]


#4131

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-12-23 03:14 +0000
Message-ID<jd0rni$f9d$1@news.albasani.net>
In reply to#4130
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..

[toc] | [prev] | [next] | [standalone]


#4138

Fromhoughi <houghi@houghi.org.invalid>
Date2011-12-23 19:27 +0100
Message-ID<slrnjf9i0d.1un.houghi@penne.houghi>
In reply to#4131
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

[toc] | [prev] | [next] | [standalone]


#4132

FromGregor Kofler <usenet@gregorkofler.com>
Date2011-12-23 09:23 +0100
Message-ID<jd1dpk$d80$1@dont-email.me>
In reply to#4130
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

[toc] | [prev] | [next] | [standalone]


#4137

FromMichael Joel <no@please.com>
Date2011-12-23 10:30 -0500
Message-ID<5i79f71gva9t9qgrikg1thib3af4e8bj2d@4ax.com>
In reply to#4132
On Fri, 23 Dec 2011 09:23:16 +0100, Gregor Kofler
<usenet@gregorkofler.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

[toc] | [prev] | [next] | [standalone]


#4134

From"Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Date2011-12-23 10:44 +0100
Message-ID<jd1ih1$2cq$2@dont-email.me>
In reply to#4130
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
--

[toc] | [prev] | [next] | [standalone]


#4135

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2011-12-23 13:47 +0000
Message-ID<jd20pv$kdr$1@news.albasani.net>
In reply to#4134
Á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..

[toc] | [prev] | [next] | [standalone]


#4136

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-12-23 14:16 +0000
Message-ID<4ef48d54$0$16510$a8266bb1@newsreader.readnews.com>
In reply to#4130
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web