[XeTeX] ] Re: Font sizes and line spacings

John Was john.was at ntlworld.com
Tue May 20 10:21:47 CEST 2008


Hi

I don't use LaTeX so am not sure how easy or difficult it is to get at the specific font sizes you want - but if it is difficult, it really shouldn't be.  I would be against scaling because (as you have discovered) it doesn't truly give the font size you are after but just an approximation to it, with some unwanted side effects.  (I do often use scaling to achieve  superiors and inferiors, though, since fonts typically come with a defective set of superior and inferior characters, and the unwanted side effects of scaling are much less noticeable in these small-size reductions.)

In plain XeTeX you get a font at any size you want simply by saying (for example)

\font\timesthirteenpointtwofive = "Times New Roman" at 13.25pt

You can use any name you like for the font, of course - that long one is quite convenient, I find, for loading the font, but then some shorthand like \maintext is probably easier.

But I don't know if (Xe)LaTeX will then produce odd effects if you try to use a font that you have loaded in this TeX-primitive way.  You would also need to set \baselineskip manually, and again LaTeX packages might behave oddly when you have done that.

Good luck!


John





  ----- Original Message ----- 
  From: Meho R. 
  To: Unicode-based TeX for Mac OS X and other platforms 
  Sent: Tuesday, May 20, 2008 7:38 AM
  Subject: JunkEmail: [SPAM] Re: [XeTeX] Font sizes and line spacings


  Thank you John and Will. I'll keep in mind your advices (I've written them down;).

  Leading package is what I was looking for for some time now. Thanks a lot :)

  Still, remains the question: how to set font at specific size (e.g. how to set main font to Adobe Garamond Pro at exactly 13pt)? I tried to make some simple calculation, but results aren't consistent. Please correct me if I'm doing it wrong:

  – I set "12pt" option to \documentclass to get font at 12pt. No Scale option for main font (\fontspec).
  – I set "10pt" option to \documentclass and Scale={1.2} to \fontspec to get font at 12 pt. The two results aren't similar. Somehow, the latter gives wider text and a little larger font. So, I guess that I can't get exact size for a font this way.





------------------------------------------------------------------------------


  _______________________________________________
  XeTeX mailing list
  postmaster at tug.org
  http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080520/0d6b8193/attachment-0001.html 


More information about the XeTeX mailing list