[texhax] Latvian Special Characters

Pascal pascal.bernhard at belug.de
Mon Mar 17 14:16:21 CET 2014


Am Monday, den 17.03.2014, 19:48 +0800 schrieb Daniel Greenhoe:
> > ... although I'm not looking
> > forward to manually installing new fonts on my system due to time
> > constraints at the moment, otherwise I do not mind.
> 
> That is one of my points about XeLaTeX: You *don't* need to install
> the fonts on your system, ... all you need to do is to *copy* them
> into a directory. That is, the fonts can be "external" fonts, they
> *don't* need to be installed fonts.
> 
> For me, I have a directory on my system called "xfonts" that I put my
> downloaded external fonts in. In many or all cases, I give each font
> its own subdirectory. Then in your .tex file, you can just reference
> it's physical location on your system with something like this:
> 
>  \setmainfont[
>    ExternalLocation, % specifies external font
>    Path           = {/xfonts/lm2004/}, % specifies path
>    Extension      = {.otf},
>    Mapping        = /dan/r/common/teckit/punctuation, % maybe not
> needed in your case
>    UprightFont    = {*-regular}, % lmroman12-regular.otf
>    BoldFont       = {*-bold}, % lmroman12-bold.otf
>    ItalicFont     = {*-italic}, % lmroman12-italic.otf
>    Scale          = {1.0},
>    ]{lmroman12}
> 
> ... where the downloaded fonts
>    lmroman12-regular.otf
>    lmroman12-bold.otf
>    lmroman12-italic.otf
> have been copied into the directory c:\xfonts\lm2004\
> 
> You can simply downloaded the 4Mbyte lm2.004otf.zip file from
>    http://www.gust.org.pl/projects/e-foundry/latin-modern/download ,
> unzip the contents in a directory <root>/xfonts/lm2004/ ,
> and then you are all set to access the font. There is no other
> necessary installation procedures. The entire setup takes maybe less
> than 5 minutes.



Thanks for the hint Daniel, I wasn't aware of that. Although I'm not
sure whether to put fonts directly into a newly created subdirectory
of /, a directory in my HOME-partition will probably do the trick too.

Pascal




More information about the texhax mailing list