Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need Proper Font Size in PDF

274 views
Skip to first unread message

Kumaresh PS

unread,
Oct 7, 2009, 12:12:32 AM10/7/09
to
Hi TeXies,

I have found font size mismatch between input values with output PDF
files using LaTeX.
For an example, I am using "10pt" as a normal font size; but I am
getting "9.96pt" in the output PDF file after performing the
compilation procedure. This is the issue I am facing with the generic
in built fonts with using the software MikTeX version 2.5.

Guide me how to come out from this issue.

Thanks in Advance.

--
Best Regards,
Kumaresh PS

Uwe Ziegenhagen

unread,
Oct 7, 2009, 1:11:04 AM10/7/09
to
Kumaresh PS schrieb:

How did you measure? From the printout?

If yes, check the Adobe Reader settings, "adjust to page" should not be
used.

BTW: MikTeX 2.5 is totally outdated, the current one is 2.8.

Uwe

Joseph Wright

unread,
Oct 7, 2009, 3:13:06 AM10/7/09
to

"font size" is a somewhat awkward thing. It's supposed to be the
height of a full line (for example, the height of "("), but as fonts
are visual things there is a need for everything to "match". So the
"appearance of 10 pt" tends to be more important than the exact size
of the letters!
--
Joseph Wright

Kumara

unread,
Oct 7, 2009, 4:02:10 AM10/7/09
to
On Oct 7, 10:11 am, Uwe Ziegenhagen <newsgr...@ziegenhagen.info>
wrote:

Hi Uwe,

Many thanks for your reply.

> How did you measure? From the printout?

I am measuring the font size using the "TouchUp Text Tool" in Acrobat
"Tools > Advance Editing > TouchUp Text Tool".
Using this tool click the text area and Press right click from the
mouse,
then using "Properties" option, can check the font size of the
required text.

No problems with the printout, its coming properly.

> BTW: MikTeX 2.5 is totally outdated, the current one is 2.8.

If I migrate my software from 2.5 to 2.8, whether this problem will
sorted out.

Please update me if any.

Ulrike Fischer

unread,
Oct 7, 2009, 5:18:36 AM10/7/09
to
Am Wed, 7 Oct 2009 01:02:10 -0700 (PDT) schrieb Kumara:


>>> I have found font size mismatch between input values with output PDF
>>> files using LaTeX.
>>> For an example, I am using "10pt" as a normal font size; but I am
>>> getting "9.96pt" in the output PDF file after performing the
>>> compilation procedure.

> I am measuring the font size using the "TouchUp Text Tool" in
> Acrobat "Tools > Advance Editing > TouchUp Text Tool". Using this
> tool click the text area and Press right click from the mouse,
> then using "Properties" option, can check the font size of the
> required text.

> If I migrate my software from 2.5 to 2.8, whether this problem will
> sorted out.

No, 2.8 will probably not change anything. I don't know what Acrobat
is measuring. If it gets the design size of the font and looks at
some scaling factor in the pdf, then probably something in your
document is scaling the font and then you will have to make a
complete minimal example. (You can also check in the log if it
mentions Size substitutions).

If Acrobat is looking at the size of the glyphs and "guess" from
them the size then it simly silly to claim the font is "exactly"
9.96 pt. Fonts at 10pt can look very different in size:

\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}
\fontsize{10pt}{11pt}\selectfont
ABC \fontfamily{fvs}\selectfont%berasans
ABC \fontfamily{ptm}\selectfont%times
ABC \fontfamily{ppl}\selectfont
ABC \fontfamily{pcr}\selectfont
ABC
\end{document}

--
Ulrike Fischer

Plamen Tanovski

unread,
Oct 7, 2009, 5:23:34 AM10/7/09
to
> For an example, I am using "10pt" as a normal font size; but I am
> getting "9.96pt" in the output PDF file after performing the

> Guide me how to come out from this issue.

Look at the difference between typographer's (TeX) and PostScript's point.

best regards

Bob Tennent

unread,
Oct 7, 2009, 7:31:26 AM10/7/09
to
On Tue, 6 Oct 2009 21:12:32 -0700 (PDT), Kumaresh PS wrote:

> I have found font size mismatch between input values with output PDF
> files using LaTeX.
> For an example, I am using "10pt" as a normal font size; but I am
> getting "9.96pt" in the output PDF file after performing the
> compilation procedure. This is the issue I am facing with the generic
> in built fonts with using the software MikTeX version 2.5.
>
> Guide me how to come out from this issue.

What exactly is "the issue"? If the font size in the document isn't as
you want it, change it accordingly. "10pt" isn't a precise measure (and
I doubt that "9.96pt" is either).

Bob T.

Kumara

unread,
Oct 7, 2009, 8:29:26 AM10/7/09
to

Hi Ulrike,

I can find the below lines in my log file:

LaTeX Font Warning: Size substitutions with differences
(Font) up to 0.43996pt have occured.
LaTeX Font Warning: Some font shapes were not available, defaults
substituted.

Is this be an issue?

Ulrike Fischer

unread,
Oct 7, 2009, 8:31:20 AM10/7/09
to
Am Wed, 7 Oct 2009 05:29:26 -0700 (PDT) schrieb Kumara:


> I can find the below lines in my log file:
>
> LaTeX Font Warning: Size substitutions with differences
> (Font) up to 0.43996pt have occured.
> LaTeX Font Warning: Some font shapes were not available, defaults
> substituted.
>
> Is this be an issue?

This means that latex has changed a size. But without a concrete,
complete small example I can't tell you more.


--
Ulrike Fischer

Kumara

unread,
Oct 7, 2009, 8:34:30 AM10/7/09
to

Hi Bob,

Yes. I am not getting the exact "10pt" font size in my output PDF.
Even though I am getting the proper font size in the DVI output.
The variation of points "0.04pt" should not be there in the PDF.

Any idea to come out from this point?

Peter Breitfeld

unread,
Oct 7, 2009, 11:03:56 AM10/7/09
to
Kumara wrote:

As Plamen pointed out the difference comes from using different units.

TeX uses pt, where 72.27 pt = 1 in

PDF and Postscript uses big-points, were 72 bp = 1 in

So 10 pt = 9.9626... bp

Acrobat tells you the bp.

--
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

Bob Tennent

unread,
Oct 7, 2009, 12:25:06 PM10/7/09
to
On Wed, 07 Oct 2009 17:03:56 +0200, Peter Breitfeld wrote:
> Kumara wrote:
>
>> On Oct 7, 4:31�pm, Bob Tennent <B...@cs.queensu.ca> wrote:
>>> On Tue, 6 Oct 2009 21:12:32 -0700 (PDT), Kumaresh PS wrote:
>>>
>>> �> I have found font size mismatch between input values with output PDF
>>> �> files using LaTeX.
>>> �> For an example, I am using "10pt" as a normal font size; but I am
>>> �> getting "9.96pt" in the output PDF file after performing the
>>> �> compilation procedure. This is the issue I am facing with the generic
>>> �> in built fonts with using the software MikTeX version 2.5.
>>> �>
>>> �> Guide me how to come out from this issue.
>>>
>>> What exactly is "the issue"? If the font size in the document isn't as
>>> you want it, change it accordingly. "10pt" isn't a precise measure (and
>>> I doubt that "9.96pt" is either).
>>>
>> Yes. I am not getting the exact "10pt" font size in my output PDF.
>> Even though I am getting the proper font size in the DVI output.
>> The variation of points "0.04pt" should not be there in the PDF.
>>
>> Any idea to come out from this point?
>
> As Plamen pointed out the difference comes from using different units.
>
> TeX uses pt, where 72.27 pt = 1 in
>
> PDF and Postscript uses big-points, were 72 bp = 1 in
>
> So 10 pt = 9.9626... bp
>
> Acrobat tells you the bp.

That may well be where Acrobat gets 9.96pt but can the OP actually *see*
a difference between the DVI and PDF documents? If so, I'd guess that a
more likely explanation is page scaling.

Bob T.

Robin Fairbairns

unread,
Oct 7, 2009, 12:52:04 PM10/7/09
to
Kumara <pskuma...@gmail.com> writes:
>I can find the below lines in my log file:
>
>LaTeX Font Warning: Size substitutions with differences
>(Font) up to 0.43996pt have occured.
>LaTeX Font Warning: Some font shapes were not available, defaults
>substituted.

that will happen if you've a fixed-size font set, and ask for a
specific size that is not available in that set. (this is the default
situation in latex.)

>Is this be an issue?

what do you mean by "an issue"? it does mean that even in tex points,
tex isn't doing what you ask it. it doesn't explain your font-size
discrepancy, which, as several have explained, is due to different
measuring spaces.

i think we should all switch to measuring fonts in parsecs --
something that's unambiguously defined. the point differs from
country to country and has varied over the history of printing. tex
chooses a different measurement from that which adobe chose.
--
Robin Fairbairns, Cambridge

Peter Flynn

unread,
Oct 7, 2009, 5:47:49 PM10/7/09
to
Bob Tennent wrote:
[...]

> That may well be where Acrobat gets 9.96pt but can the OP actually *see*
> a difference between the DVI and PDF documents?

No. He said


> No problems with the printout, its coming properly.

It's the difference between 10pt and 10bp.

///Peter

Andrew Moschou

unread,
Oct 7, 2009, 6:36:51 PM10/7/09
to
On Oct 7, 7:23 pm, Plamen Tanovski <p...@arcor.de> wrote:>
> Look at the difference between typographer's (TeX) and PostScript's point.

I think this is exactly the issue. PostScript points (72.00 points per
25.4mm) are slightly larger than TeX points (72.27 points per 25.4
mm). And it turns out that 10 TeX points equals (approximately) 9.96
PostScript points (9.96 = 10*72/72.27). The TeX point is historically
(in a particular tradition) the correct point, but PostScript are
popular today because 72 is a better number than 72.27.

PostScript points may be used in TeX dimensions with the unit
"bp" (for big point) instead of "pt".

Note however, we can not do e.g. \documentclass[10bp]{article} because
10bp is not a defined option. Font size must be changed somehow else.

Andrew

Herbert Schulz

unread,
Oct 7, 2009, 8:27:23 PM10/7/09
to
In article
<f2c5a7a8-901f-450f...@u16g2000pru.googlegroups.com>,
Andrew Moschou <and...@gmail.com> wrote:

> The TeX point is historically
> (in a particular tradition) the correct point, but PostScript are
> popular today because 72 is a better number than 72.27.

Howdy,

And pi = 3!

Good Luck,
Herb Schulz

Kumara

unread,
Oct 8, 2009, 12:12:08 AM10/8/09
to

Dear Peter Breitfeld,

Many Thanks for your explanation.

But, I need to bring exactly 10pt (10bp) in the PDF.
Is there any method the get that in my PDF?

Best Regards,
Kumaresh PS

Bob Tennent

unread,
Oct 8, 2009, 2:45:40 AM10/8/09
to
On Wed, 7 Oct 2009 21:12:08 -0700 (PDT), Kumara wrote:

> But, I need to bring exactly 10pt (10bp) in the PDF.
> Is there any method the get that in my PDF?

I can't imagine why this is so important for you but you could try

\makeatletter
\def\@xpt{10.0375} % = 10 * 72.27 / 72.00
\makeatother

Bob T.

Kumara

unread,
Oct 8, 2009, 3:21:37 AM10/8/09
to

Hi Bob,

Since this is my customer's requirement, that's way only I am giving
importance for this.

> \makeatletter
> \def\@xpt{10.0375} % = 10 * 72.27 / 72.00
> \makeatother

So, as per your above suggestion, I need to perform this calculation
to all of my font size definitions.
Is there any way to perform this activity in my entire document not
only for 10pt (somewhere I used 5pt, 8pt, 12pt, 24pt, etc...)?

Ulrike Fischer

unread,
Oct 8, 2009, 4:21:00 AM10/8/09
to
Am Wed, 7 Oct 2009 14:31:20 +0200 schrieb Ulrike Fischer:


> This means that latex has changed a size. But without a concrete,
> complete small example I can't tell you more.

And this doesn't mean you should sent me a 9MB e-mail with some
screenshots and a zip with all your files. I deleted everything
unread directly on the server.

Make a minimal example and sent the code *here* (if it is small
enough you can paste the code directly in the message), not to some
private e-mails.

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=askquestion
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl


--
Ulrike Fischer

Kumara

unread,
Oct 8, 2009, 4:31:24 AM10/8/09
to

Hi Ulrike Fischer,

Ok

Best Regards,
Kumaresh PS

Bob Tennent

unread,
Oct 8, 2009, 9:27:11 AM10/8/09
to
On Thu, 8 Oct 2009 00:21:37 -0700 (PDT), Kumara wrote:
> On Oct 8, 11:45�am, Bob Tennent <B...@cs.queensu.ca> wrote:
>> On Wed, 7 Oct 2009 21:12:08 -0700 (PDT), Kumara wrote:
>>
>> �> But, I need to bring exactly 10pt (10bp) in the PDF.
>> �> Is there any method the get that in my PDF?
>>
>> I can't imagine why this is so important for you but you could try
>>
>> � \makeatletter
>> � \def\@xpt{10.0375} �% = 10 * 72.27 / 72.00
>> � \makeatother
>>
>
> Since this is my customer's requirement, that's way only I am giving
> importance for this.
>
>> \makeatletter
>> \def\@xpt{10.0375} % = 10 * 72.27 / 72.00
>> \makeatother
>
> So, as per your above suggestion, I need to perform this calculation
> to all of my font size definitions.
> Is there any way to perform this activity in my entire document not
> only for 10pt (somewhere I used 5pt, 8pt, 12pt, 24pt, etc...)?

Try this:

\makeatletter
\def\set@fontsize#1#2#3{%
\@defaultunits\@tempdimb#2bp\relax\@nnil
\edef\f@size{\strip@pt\@tempdimb}%
\@defaultunits\@tempskipa#3bp\relax\@nnil
\edef\f@baselineskip{\the\@tempskipa}%
\edef\f@linespread{#1}%
\let\baselinestretch\f@linespread
\def\size@update{%
\baselineskip\f@baselineskip\relax
\baselineskip\f@linespread\baselineskip
\normalbaselineskip\baselineskip
\setbox\strutbox\hbox{%
\vrule\@height.7\baselineskip
\@depth.3\baselineskip
\@width\z@}%
\let\size@update\relax}%
}
\makeatother

This is a low-level command from latex.ltx, modified to use bp instead
of pt.

Bob T.

Bob Tennent

unread,
Oct 8, 2009, 9:42:53 AM10/8/09
to

You may want to add

\p@=1bp

(just before the \makeatother) so the various "skips" will be scaled
accordingly, but this will affect your textwidth too.

Kumara

unread,
Oct 9, 2009, 12:25:06 AM10/9/09
to

Hi Bob,

Fantastic one...

Its working fine.

Thanks a lot for your guidance.

0 new messages