On Sep 9, 2010, at 6:59 PM, Innocent Smith wrote:
> Hello,
>
> I have tried experimenting, but have been unable to figure out how  
> to get the proper font to appear on the initial letter. I called  
> both size fonts
>
> \font\initialfont="/Users/admin/Library/Fonts/GaramondPremrPro.otf"  
> at 36pt
> \font\initialfont="/Users/admin/Library/Fonts/GaramondPremrPro.otf"  
> at 12pt

Hello,

I think you only want the first line here, right? You loaded Garamond  
Premier Pro twice as \initialfont, so you just changed it from 36 to  
12pt...

> and put the relevant font size number in the greinitialformat
>
> \def\greinitialformat#1{%
> {\fontsize{36}{36}\selectfont #1}%
> }
>
> Do I need to change something further in this script to get it to  
> print the 36pt otf font?

If you use \greinitialformat as written, you will still be using the  
default document font, not Garamond. You need to redefine  
\greinitialformat to use your \initialfont (replace the \fontsize  
invocation above):

\def\greinitialformat#1{%
   {\initialfont #1}%
}

> How would I redefine the \greitalic?

Same thing, except you would define a new font, loading an italic this  
time. Something like:

\font\myitalicfont="/whatever/path/to/GaramondPremrPro-It.otf" at 12pt

Then
\def\greitalic#1{%
   {\myitalicfont #1}%
}

Every size and shape you want needs to be loaded individually. But as  
Elie said, using an updated fontspec package allows you to set the  
fonts for the whole document at once (kinda similar to how you can say  
\usepackage{kpfonts or times or palatino...} and it sets all the font  
sizes/shapes in your document to the same typeface/font family  
automatically, but fontspec uses your normal otf/ttf fonts). It will  
be part of TeXLive/MacTeX 2010, if you don't want to upgrade things  
piecemeal.


-Tracy

_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to