POV-Ray : Newsgroups : povray.off-topic : Font metrics Server Time
13 Oct 2026 12:45:07 EDT (-0400)
  Font metrics (Message 1 to 26 of 26)  
From: Invisible
Subject: Font metrics
Date: 3 Nov 2009 05:49:03
Message: <4af00a9f$1@news.povray.org>
Does *anybody* here know what the hell the width of each character in a 
Courier 10pt typeface is?! (Apparently it isn't 10pt.)


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 3 Nov 2009 07:49:59
Message: <4af026f7$1@news.povray.org>
Invisible wrote:
> Does *anybody* here know what the hell the width of each character in a 
> Courier 10pt typeface is?! (Apparently it isn't 10pt.)

Thanks for the tips, guys.

Well, by a series of experiments, I have discovered that the neither the 
character width or character hight of Courier 10pt is actually 10pt. The 
distance from the baseline to the capline is more like 5.5pt or 
something, and the distance between characters appears to be exactly 6pt...


Post a reply to this message

From: clipka
Subject: Re: Font metrics
Date: 3 Nov 2009 08:21:09
Message: <4af02e45$1@news.povray.org>
Invisible schrieb:

> Well, by a series of experiments, I have discovered that the neither the 
> character width or character hight of Courier 10pt is actually 10pt. The 
> distance from the baseline to the capline is more like 5.5pt or 
> something, and the distance between characters appears to be exactly 6pt...

Yes, the "pt" in fonts is a rather arbitrary measurement. I guess in 
traditional typesetting it would refer to the height of the metal 
"block" from which the letters were cut, so even there it would be only 
indirectly related to the actual glyph dimensions.


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 3 Nov 2009 08:47:16
Message: <4af03464$1@news.povray.org>
>> Well, by a series of experiments, I have discovered that the neither 
>> the character width or character hight of Courier 10pt is actually 
>> 10pt. The distance from the baseline to the capline is more like 5.5pt 
>> or something, and the distance between characters appears to be 
>> exactly 6pt...
> 
> Yes, the "pt" in fonts is a rather arbitrary measurement. I guess in 
> traditional typesetting it would refer to the height of the metal 
> "block" from which the letters were cut, so even there it would be only 
> indirectly related to the actual glyph dimensions.

Well, the glyph will be smaller than the metal block to allow some 
whitespace around the glyph. But you'd think 10pt would be either the 
width or the hieght of the block... Apparently it is neither.


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: Font metrics
Date: 3 Nov 2009 09:36:00
Message: <op.u2tpibuq7bxctx@bigfrog.bredbandsbolaget.se>
On Tue, 03 Nov 2009 14:47:15 +0100, Invisible <voi### [at] devnull> wrote:
>
> Well, the glyph will be smaller than the metal block to allow some  
> whitespace around the glyph. But you'd think 10pt would be either the  
> width or the hieght of the block... Apparently it is neither.

http://en.wikipedia.org/wiki/Em_(typography)



-- 
FE


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 3 Nov 2009 09:41:42
Message: <4af04126@news.povray.org>
>> Well, the glyph will be smaller than the metal block to allow some 
>> whitespace around the glyph. But you'd think 10pt would be either the 
>> width or the hieght of the block... Apparently it is neither.
> 
> http://en.wikipedia.org/wiki/Em_(typography)

Your point being...?

Last time I checked, PostScript measures everything in points.


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: Font metrics
Date: 3 Nov 2009 09:46:49
Message: <op.u2tp0d0t7bxctx@bigfrog.bredbandsbolaget.se>
On Tue, 03 Nov 2009 15:41:41 +0100, Invisible <voi### [at] devnull> wrote:
>
> Your point being...?

"In metal type, the point size (and hence the em) is measured as the  
height of the metal body from which the letter rises."

"In digital type, the relationship of the height of particular letters to  
the em is arbitrarily set by the typeface designer. However, as a very  
rough guideline, an 'average' font might have a cap height of 70% of the  
em, and an x-height of 48% of the em."


> Last time I checked, PostScript measures everything in points.

With the "point size" corresponding to the em. In a 10pt font, one em  
equals 10 points. The actual height of most letters will be smaller.



-- 
FE


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 3 Nov 2009 09:59:16
Message: <4af04544$1@news.povray.org>
>> Your point being...?
> 
> "In metal type, the point size (and hence the em) is measured as the 
> height of the metal body from which the letter rises."

I knew that. ;-)

> "In digital type, the relationship of the height of particular letters 
> to the em is arbitrarily set by the typeface designer."

In other words, given a 10pt font, there is no way to determine how tall 
or wide any of the letters are. (E.g., they could be 10pt, 1pt, 
1000pt...) This is very helpful. :-/

>> Last time I checked, PostScript measures everything in points.
> 
> With the "point size" corresponding to the em. In a 10pt font, one em 
> equals 10 points. The actual height of most letters will be smaller.

Still doesn't help me figure out how wide the letters of Courier 10pt 
are. (Being a monospace font, all the letters should be the same width...)

As I say, it appears to be exactly 6pt. But I have no idea why...


Post a reply to this message

From: Warp
Subject: Re: Font metrics
Date: 3 Nov 2009 09:59:25
Message: <4af0454d@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Does *anybody* here know what the hell the width of each character in a 
> Courier 10pt typeface is?! (Apparently it isn't 10pt.)

  The size of a font refers to its height, not its width.

  (And the "height" is that between two baselines in the font. The font
graphics themselves can go over those lines.)

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 3 Nov 2009 10:00:35
Message: <4af04593$1@news.povray.org>
Warp wrote:

>   The size of a font refers to its height, not its width.

I had a vague recollection this might be the case.

>   (And the "height" is that between two baselines in the font. The font
> graphics themselves can go over those lines.)

That at least makes some kind of sense...


Post a reply to this message

From: Stephen
Subject: Re: Font metrics
Date: 3 Nov 2009 13:49:50
Message: <4af07b4e@news.povray.org>
Invisible wrote:
> Warp wrote:
> 
>>   The size of a font refers to its height, not its width.
> 
> I had a vague recollection this might be the case.
> 
>>   (And the "height" is that between two baselines in the font. The font
>> graphics themselves can go over those lines.)
> 
> That at least makes some kind of sense...

And there is 72 points to the inch.

-- 

Best Regards,
	Stephen


Post a reply to this message

From: Orchid XP v8
Subject: Re: Font metrics
Date: 3 Nov 2009 13:59:16
Message: <4af07d84@news.povray.org>
> And there is 72 points to the inch.

Depending on who you ask. ;-)

(PostScript assigns 72 points to the inch, TeX assigns 72.72, and 
apparently other systems assign yet other values.)

Fortunately, in this instance I'm only interested in PS.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Stephen
Subject: Re: Font metrics
Date: 3 Nov 2009 14:58:23
Message: <4af08b5f$1@news.povray.org>
Orchid XP v8 wrote:
>> And there is 72 points to the inch.
> 
> Depending on who you ask. ;-)
> 

True ask me, I worked in printing just after hot metal went out of 
fashion. LOL

> (PostScript assigns 72 points to the inch, TeX assigns 72.72, and 
> apparently other systems assign yet other values.)
> 
> Fortunately, in this instance I'm only interested in PS.
> 

:)

-- 

Best Regards,
	Stephen


Post a reply to this message

From: andrel
Subject: Re: Font metrics
Date: 3 Nov 2009 15:16:18
Message: <4AF08F92.6070204@hotmail.com>
On 3-11-2009 20:58, Stephen wrote:
> Orchid XP v8 wrote:
>>> And there is 72 points to the inch.
>>
>> Depending on who you ask. ;-)
>>
> 
> True ask me, I worked in printing just after hot metal went out of 
> fashion. LOL


Ok: how many points in an inch?


Post a reply to this message

From: andrel
Subject: Re: Font metrics
Date: 3 Nov 2009 15:21:05
Message: <4AF090B0.6040500@hotmail.com>
On 3-11-2009 11:49, Invisible wrote:
> Does *anybody* here know what the hell the width of each character in a 
> Courier 10pt typeface is?! (Apparently it isn't 10pt.)

I did a simple test: I used Open Office writer. Selected Courier New and 
type as many spaces as I could fit on a line. There were 66, the ruler 
showed that that was in approximately 16.8 cm. So we have
66/(16.8/2.54) characters per inch. Or about 9.9786.
Great. Minor detail, the font size is 12.


Post a reply to this message

From: Stephen
Subject: Re: Font metrics
Date: 3 Nov 2009 16:04:24
Message: <4af09ad8@news.povray.org>
andrel wrote:
> On 3-11-2009 20:58, Stephen wrote:
>> Orchid XP v8 wrote:
>>>> And there is 72 points to the inch.
>>>
>>> Depending on who you ask. ;-)
>>>
>>
>> True ask me, I worked in printing just after hot metal went out of 
>> fashion. LOL
> 
> 
> Ok: how many points in an inch?

72 LOL

-- 

Best Regards,
	Stephen


Post a reply to this message

From: Shay
Subject: Re: Font metrics
Date: 3 Nov 2009 16:41:10
Message: <4af0a376@news.povray.org>
Invisible wrote:
> 
> In other words, given a 10pt font, there is no way to determine how tall 
> or wide any of the letters are. (E.g., they could be 10pt, 1pt, 
> 1000pt...) This is very helpful. :-/

Look in the font file. It can be converted to human readable with 
probably several things. I use fontforge.

> 
> As I say, it appears to be exactly 6pt. But I have no idea why...

Correct.

  -Shay


Post a reply to this message

From: Orchid XP v8
Subject: Re: Font metrics
Date: 3 Nov 2009 16:42:05
Message: <4af0a3ad@news.povray.org>
>> In other words, given a 10pt font, there is no way to determine how 
>> tall or wide any of the letters are. (E.g., they could be 10pt, 1pt, 
>> 1000pt...) This is very helpful. :-/
> 
> Look in the font file. It can be converted to human readable with 
> probably several things. I use fontforge.

The PostScript Courier font is hard-wired into the printer. I have no 
idea how to get at it.

>> As I say, it appears to be exactly 6pt. But I have no idea why...
> 
> Correct.

Much experimentation and many trees later... ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: clipka
Subject: Re: Font metrics
Date: 3 Nov 2009 18:06:52
Message: <4af0b78c$1@news.povray.org>
Invisible schrieb:
>>> Well, by a series of experiments, I have discovered that the neither 
>>> the character width or character hight of Courier 10pt is actually 
>>> 10pt. The distance from the baseline to the capline is more like 
>>> 5.5pt or something, and the distance between characters appears to be 
>>> exactly 6pt...
>>
>> Yes, the "pt" in fonts is a rather arbitrary measurement. I guess in 
>> traditional typesetting it would refer to the height of the metal 
>> "block" from which the letters were cut, so even there it would be 
>> only indirectly related to the actual glyph dimensions.
> 
> Well, the glyph will be smaller than the metal block to allow some 
> whitespace around the glyph. But you'd think 10pt would be either the 
> width or the hieght of the block... Apparently it is neither.

Note that the block had to accomodate not only capital letters, but also 
underliners, as well as accent symbols above capital letters; so if the 
capital letters are 5.5 pt in height, a block height of 10 pt appears 
realistic to me.


Post a reply to this message

From: clipka
Subject: Re: Font metrics
Date: 3 Nov 2009 18:42:07
Message: <4af0bfcf$1@news.povray.org>
Invisible schrieb:

> In other words, given a 10pt font, there is no way to determine how tall 
> or wide any of the letters are. (E.g., they could be 10pt, 1pt, 
> 1000pt...) This is very helpful. :-/

Exactly.

There's some meta-information in font files though.


> Still doesn't help me figure out how wide the letters of Courier 10pt 
> are. (Being a monospace font, all the letters should be the same width...)
> 
> As I say, it appears to be exactly 6pt. But I have no idea why...

Typewriters typically used a spacing of 10 or (less commonly) 12 
characters per inch, i.e. a character width of 7.2 pt (10 cpi) or 6.0 pt 
(12 cpi).

With 10 pt and 12 pt being the most common nominal font sizes on 
computers, it makes sense to design a pixed-pitch font to match the 
common typewriter pitch of 7.2 pt (to be able to print on forms 
originally designed for typewriters) at a nominal font size of 12 pt, as 
this also allows to emulate the 6.0 pt pitch by simply changing the 
nominal font size to 10 pt.

Hence the exact 6 pt pitch of the Courier font at a nominal font size of 
10 pt.


Post a reply to this message

From: clipka
Subject: Re: Font metrics
Date: 3 Nov 2009 18:44:25
Message: <4af0c059$1@news.povray.org>
Warp schrieb:

>   (And the "height" is that between two baselines in the font. The font
> graphics themselves can go over those lines.)

That's actually not true - at least not in practice. Instead, word 
processing software will usually adjust the line spacing to some other 
font properties.


Post a reply to this message

From: clipka
Subject: Re: Font metrics
Date: 3 Nov 2009 19:17:19
Message: <4af0c80f$1@news.povray.org>
Orchid XP v8 schrieb:
>> And there is 72 points to the inch.
> 
> Depending on who you ask. ;-)
> 
> (PostScript assigns 72 points to the inch, TeX assigns 72.72, and 
> apparently other systems assign yet other values.)
> 
> Fortunately, in this instance I'm only interested in PS.

The traditional US-american printers' "pica point" was defined for one 
pica (12 points) to be 0.166 inch (giving ca. 72.29 points per inch). 
TeX, being quite traditionalistic regarding typesetting, probably bases 
its definition on this older standard, although I'm quite puzzled why it 
uses the slightly lower value of 72.27 (not 72.72). Maybe it has to do 
with the evolution of the inch since the day the "pica point" was 
standardized. Also, there seems to have been alternative suggestions for 
the definition of the pica point back in the time when it was 
standardized in 1886, one if which would have resulted in exactly 72.27 
points per inch.

However, /the/ "DTP point" gives exactly 72 points per inch, and any 
software using a different definition is a rare exception.


Post a reply to this message

From: SharkD
Subject: Re: Font metrics
Date: 3 Nov 2009 23:39:48
Message: <4af10594$1@news.povray.org>
On 11/3/2009 7:17 PM, clipka wrote:
> The traditional US-american printers' "pica point" was defined for one
> pica (12 points) to be 0.166 inch (giving ca. 72.29 points per inch).
> TeX, being quite traditionalistic regarding typesetting, probably bases
> its definition on this older standard, although I'm quite puzzled why it
> uses the slightly lower value of 72.27 (not 72.72). Maybe it has to do
> with the evolution of the inch since the day the "pica point" was
> standardized. Also, there seems to have been alternative suggestions for
> the definition of the pica point back in the time when it was
> standardized in 1886, one if which would have resulted in exactly 72.27
> points per inch.
>
> However, /the/ "DTP point" gives exactly 72 points per inch, and any
> software using a different definition is a rare exception.

Pica pica!

       .
       |\
       | \.,,,__________
      /            __!!/
     |(%)    (%)   \
    ()   .     ()  |
     \  ,.,        /
     /             \
  \"/        \''\  |
    \            <_/
     \          <_,|
      .,..,,/"/,  /\\
      \  |  \____/  \\
       ""         __//
           _____ ||''
          /  / \\||
         /  /   \,|
        |__|     \/


Mike


Post a reply to this message

From: SharkD
Subject: Re: Font metrics
Date: 3 Nov 2009 23:57:41
Message: <4af109c5$1@news.povray.org>
On 11/3/2009 5:49 AM, Invisible wrote:
> Does *anybody* here know what the hell the width of each character in a
> Courier 10pt typeface is?! (Apparently it isn't 10pt.)

So, have you found a single guide which answers all your questions? I'm 
interested in learning about it too.

Mike


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 4 Nov 2009 04:26:34
Message: <4af148ca$1@news.povray.org>
SharkD wrote:

> Pica pica!
> 
>       .
>       |\
>       | \.,,,__________
>      /            __!!/
>     |(%)    (%)   \
>    ()   .     ()  |
>     \  ,.,        /
>     /             \
>  \"/        \''\  |
>    \            <_/
>     \          <_,|
>      .,..,,/"/,  /\\
>      \  |  \____/  \\
>       ""         __//
>           _____ ||''
>          /  / \\||
>         /  /   \,|
>        |__|     \/
> 

Oh dear God... >_<


Post a reply to this message

From: Invisible
Subject: Re: Font metrics
Date: 4 Nov 2009 04:27:36
Message: <4af14908$1@news.povray.org>
SharkD wrote:
> On 11/3/2009 5:49 AM, Invisible wrote:
>> Does *anybody* here know what the hell the width of each character in a
>> Courier 10pt typeface is?! (Apparently it isn't 10pt.)
> 
> So, have you found a single guide which answers all your questions? I'm 
> interested in learning about it too.

Nope. In the end, I had to measure the metrics emperically. Google was 
useless.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.