LuaLaTeX with Window's fonts

Herbert Voss Herbert.Voss at fu-berlin.de
Sun Feb 14 17:02:55 CET 2021



Am 14.02.21 um 16:58 schrieb Jerry:
> On Sunday, February 14, 2021 10:06 AM, Herbert Voss wrote:
>> Jerry schrieb:
>>> On Saturday, February 13, 2021 5:09 PM, David Carlisle stated:
>>>> On Sat, 13 Feb 2021 at 22:02, Jerry <jerry at seibercom.net> wrote:
>>>>
>>>>> That does tell me how to use the font already available on my
>>>>> system with I was told it was supposed to be easy to use available
>>>>> Windows fonts with LuaLaTeX, but I have not discovered the secret.
>>>>>
>>>> Hi, I posted two documents one using Arial, another Georgia, did they
>>>> not work for you?
>>> Unfortunately, no. It seems LuaLaTeX cannot find the font. I checked,
>>> and it is present and works with MS Word.
>>
> This is a small tex file:
>
> \documentclass[10pt,letterpaper,oneside,final]{article}
> \usepackage{fontspec}
> \usepackage{graphicx}
> \usepackage[width=8.50in, height=11.00in, left=0.50in, right=0.50in,
> top=1.00in, bottom=1.00in]{geometry}
> \begin{document}
> 	
> \fontfamily{Georgia}\selectfont


But nobody wrote, that you should use it this way!

\documentclass[10pt,letterpaper,oneside,final]{article}
\usepackage{fontspec}

\setmainfont{Georgia}

\usepackage{graphicx}
\usepackage[width=8.50in, height=11.00in, left=0.50in, right=0.50in,
top=1.00in, bottom=1.00in]{geometry}
\begin{document}

This is a test of Georgia font.
	
\end{document}


Herbert


More information about the texhax mailing list.