mrzool / invoice-boilerplate

Simple automated LaTeX invoicing system
http://mrzool.cc/tex-boilerplates/
GNU General Public License v2.0
702 stars 102 forks source link

fonnts issue #15

Closed abitofalchemy closed 4 years ago

abitofalchemy commented 4 years ago

Error producing PDF. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "Hoefler Text" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H . !...............................................

l.26 ...Common}, Numbers={OldStyle}]{Hoefler Text}

makefile:6: recipe for target 'output.pdf' failed make: *** [output.pdf] Error 43

abitofalchemy commented 4 years ago

is there a quick fix for this, i'm on an ubuntu box.

mrzool commented 4 years ago

The quick fix would be to use a font that you have available on your system, and not one that you don't have.

sigstart commented 3 years ago

I compile using Ubuntu on Windows Subsystem for Linux and ended up switching to Georgia for my serif font, and Roboto for my sans-serif font.

If you're using Ubuntu proper (and not WSL), then you can apparently get Georgia by running the MSCoreFonts installer:

sudo apt install ttf-mscorefonts-installer

You'll have to accept a Microsoft EULA, though.

I tried several serif fonts and none of them are a solid replacement for Hoefler Text. Surprisingly few of them have support for the smallcaps used in this template.

For awhile I used Noto Serif and PT Sans, but Noto Serif doesn't have those cool Old Style numerals that you get in Hoefler Text. Georgia does, which is why I ended up using it.

An alternative for the sans-serif fonts I mentioned is Segoe UI, which comes with Windows Vista and newer. However, it is not included with the MSCoreFonts installer on Ubuntu.

FWIW, I tested Roboto and Segoe UI and ended up liking Roboto more.

P.S. For those who are using WSL, you can access your Windows fonts by creating /etc/fonts/local.conf as follows:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/mnt/c/Windows/Fonts</dir>
</fontconfig>