lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Absfontsize wrong font size in final PDF


From: Alexander Kobel
Subject: Re: Absfontsize wrong font size in final PDF
Date: Tue, 19 Apr 2016 17:28:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

On 2016-04-19 12:32, reetpetite wrote:
Dear lilypond-user group,

I am struggling with a font size problem.
When using abs-fontsize the final pdf font sizes are always a bit smaller
than the values specified

results in a pdf where the font sizes are
default : 10.96 pt
abs-fontsize #16: 15.94 pt
abs-fontsize #12: 11.95 pt
abs-fontsize #10: 9.96pt

How can I get Lilypond to produce the exact font size specified with
abs-fontsize?

Hi $NAME,

maybe you are getting what you want, but don't know it? :-)

Looking forward to your input

Input:
% for s in 10 11 12 16; do echo "$s * 72/72.27 = $(printf "%7.4f" $((s * 72/72.27)))"; done

Output:
10 * 72/72.27 =  9.9626
11 * 72/72.27 = 10.9589
12 * 72/72.27 = 11.9552
16 * 72/72.27 = 15.9402

Lilypond's abs-fontsize sets the size in the unit that LaTeX calls a pt (typographic points; 1 pt = 1/72.27 in), whereas PDF's internal unit is a bp ("big point" or DTP point; 1 bp = 1/72 in). See, e.g., https://en.wikipedia.org/wiki/Point_(typography). Most probably, noone will notice without opening the file in a PDF editor (which typically show bp). And if she does, she will love you for being a good old-school typographer who does not settle on those new trends. ;-)

Nevertheless, you can manually adjust the argument of abs-fontsize by yourself, using
 \abs-fontsize #(* 11 1.00375)
or the slightly more verbose
 \abs-fontsize #(* 11 (/ 72.27 72))
where you replace 11 by your desired value in bp.


Cheers,
Alexander



reply via email to

[Prev in Thread] Current Thread [Next in Thread]