What is the working directory for relative paths? (Trying to use fontspec
)
#1095
Unanswered
ararunaufc
asked this question in
Q&A
Replies: 1 comment
-
If you'd like to use relative paths, you can try \newfontfamily\EauDouceSansFont{eau_douce_sans}[
Path = ./res/fonts/eds/, % dont forget the last "/"
Extension = .otf, % can be omitted
UprightFont = *_regular, % * maens "eau_douce_sans", full expression is ok
BoldFont = *_bold,
ItalicFont = *_italic,
BoldItalicFont = *_bolditalic,
] In this configuration, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I'm trying to load custom OTF files with
fontspec
and it keeps complaining about my relative paths.My
_preamble.tex
file is next to a folder calledres
where I'm keeping those font files. The full path from that folder is in the code below, which is how I'm trying to load them:\newfontfamily\EauDouceSansFont{Eau Douce Sans}[ UprightFont = res/fonts/eds/eau_douce_sans_regular.otf, BoldFont = res/fonts/eds/eau_douce_sans_bold.otf, ItalicFont = res/fonts/eds/eau_douce_sans_regular.otf, BoldItalicFont = res/fonts/eds/eau_douce_sans_bold.otf, ]
But I always get this error:
Can you help me figure out what is wrong...? Thank you, guys.
Beta Was this translation helpful? Give feedback.
All reactions