Re: Absfontsize wrong font size in final PDF

2016-04-24 Thread reetpetite
Thanks for your responses. The mysterious different point sizes solved my
issue. Thanks once more.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Absfontsize-wrong-font-size-in-final-PDF-tp189745p189984.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Absfontsize wrong font size in final PDF

2016-04-19 Thread Alexander Kobel

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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Absfontsize wrong font size in final PDF

2016-04-19 Thread Carl Sorensen
On 4/19/16 4:32 AM, "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?
>
>Looking forward to your input

I believe this is due to the fact that there are two different point
sizes.  A pdf point is 1/72 inch.  A LaTeX point is 1/72.27 inch.  Thus,
the LaTeX point is slightly smaller than a pdf point.

LilyPond uses LaTeX points as a design decision.  Thus, a 20 point
LilyPond font will be slightly less than 20 pdf points in size.

You can read about LaTeX lengths here:
https://en.wikibooks.org/wiki/LaTeX/Lengths

Hope this helps,

Carl


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Absfontsize wrong font size in final PDF

2016-04-19 Thread reetpetite
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?

Looking forward to your input



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Absfontsize-wrong-font-size-in-final-PDF-tp189745.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user