POV-Ray : Newsgroups : povray.off-topic : Font metrics Server Time
5 Sep 2024 01:19:19 EDT (-0400)
  Font metrics (Message 11 to 20 of 26)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>
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

<<< Previous 10 Messages Goto Latest 10 Messages Next 6 Messages >>>

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