2

I'm on Ubuntu 16.04. I can use the Georgia Font in LibreOffice Writer. I want to use the font in a Latex Beamer document. Something like

\setbeamerfont{title}{family=georgia}

fails. What is wrong?

  • Welcome. If you have it installed as a system font you need to use fontspec and Xe-/LuaLaTeX. – TeXnician Dec 7 '17 at 12:57
  • @TeXnician If you would like to write an answer, I'll happily delete my CW answer. (Feel free to copy and paste whatever you could reuse for your answer) – user36296 Dec 7 '17 at 21:45
  • 1
    This is one of those times where tex.meta.stackexchange.com/questions/3343/what-makes-a-good-mwe would be an excellent idea – A Feldman Jan 7 '18 at 3:27
  • This newer question is also relevant to you. I couldn’t post it as an answer to your question because nothing in it is specific to Beamer. – Davislor Dec 12 '18 at 20:08
3

TeXnician did not post his correct comment as an answer, so I will provide a summary:

In traditional pdftex (pdflatex), the fonts are based on PostScript (or older) technology, and are specified using LaTeX font packages. The font package not only contains the font and its metrics, but also includes TeX code describing how the font is used by TeX.

Although a PostScript font can contain many characters, the original technology only allowed a byte's worth of them to be in use at one time. TeX deals with this via font encodings.

If you enjoy torture, you can disassemble a font such as Georgia (if license permits), and write LaTeX font packages that will load its components.

But before you do that, consider using LuaLaTeX or XeTeX as the compiler, instead of pdflatex. With LuaLaTeX or XeTeX, you load the fontspec package. This enables you to read modern Open Type and TrueType fonts directly, without the need for LaTeX font packages. And, the fonts can be found if they are installed in your operating system. That's what you are trying to do.

Best of all, you use utf-8 encoding, so you can mix and match Latin, Greek, Cyrillic, and many other characters directly, just by pasting them from a character map.

If you search around, you will find plenty of information on the subject. Understand that each compiler has a few things that it will or won't do, compared to the other compilers. But as far as I know, for general usage it is easy to switch, at least to LuaLaTeX.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.