Error loading .otf font in xelatexHow do I use an OpenType font with my LaTeX document?Use an *.otf font with fontspecXeLatex otf font won't loadfontspec font-not-found / Invalid fontname on Mac update
Making a sword in the stone, in a medieval world without magic
Why did it take so long to abandon sail after steamships were demonstrated?
Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?
Is a lawful good "antagonist" effective?
Bash replace string at multiple places in a file from command line
Simulating rnorm() using runif()
Bastion server: use TCP forwarding VS placing private key on server
Is it true that real estate prices mainly go up?
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
SQL Server Primary Login Restrictions
Have researchers managed to "reverse time"? If so, what does that mean for physics?
Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?
Check this translation of Amores 1.3.26
Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?
Identifying the interval from A♭ to D♯
Life insurance that covers only simultaneous/dual deaths
What are the possible solutions of the given equation?
Does splitting a potentially monolithic application into several smaller ones help prevent bugs?
Professor being mistaken for a grad student
2D counterpart of std::array in C++17
Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab
How do I hide Chekhov's Gun?
Why are the outputs of printf and std::cout different
Where is the 1/8 CR apprentice in Volo's Guide to Monsters?
Error loading .otf font in xelatex
How do I use an OpenType font with my LaTeX document?Use an *.otf font with fontspecXeLatex otf font won't loadfontspec font-not-found / Invalid fontname on Mac update
I'm certain this must be a duplicate as there are lots of very similar questions, but none of the answers I can find work for me.
I have a set of .otf
font files (one each for the regular, italic, bold and bold italic versions) which I want to use as the default font in a XeLaTeX document. I've tried lots of ways of loading them, but here's a concrete example:
documentclassarticle
usepackagefontspec
setmainfontHelveticaNeueLTPro[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begindocument
Test
enddocument
At the moment, this test.tex
file plus the four .otf
files are in my home directory (/home/richard/
):
richard@fannich:~$ ls -l *.otf *.tex
-rw-r--r-- 1 richard richard 21608 Mar 14 21:44 HelveticaNeueLTPro-BdIt.otf
-rw-r--r-- 1 richard richard 22776 Mar 14 21:44 HelveticaNeueLTPro-Bd.otf
-rw-r--r-- 1 richard richard 17404 Mar 14 21:44 HelveticaNeueLTPro-It.otf
-rw-r--r-- 1 richard richard 26936 Mar 14 21:44 HelveticaNeueLTPro-Roman.otf
-rw-r--r-- 1 richard richard 290 Mar 14 21:57 test.tex
When I run xelatex test
, I get the following error:
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def)))))kpathsea:make_tex: Invalid fontname `[/home/richard/HelveticaNeueLTPro-Roman.otf]/OT', contains '['
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "HelveticaNeueLTPro-Roman" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.9 Extension = .otf]
So far as I can see, I've done exactly what is described in this answer. I've also tried putting the path in braces per this answer, though I think that's only necessary if you spaces or other special characters in the path. I've also tried using the old setmainfont
syntax per this answer, though my fontspec
package seems to be from 2017 (the TexLive packages are the Debian ones labelled 2016.20170123-5
). I've also tried using xltxtra
instead of fontspec
per this answer. I've tried removing the Extension = .otf
and appending .otf
to each font name. I've tried removing the Path
parameter as it's in the local directors. I've tried just putting a bare setmainfontHelveticaNeueLTPro-Roman.otf
. None of these change the error I see.
Any suggestions? One thing I can't do is install the fonts as root.
fonts xetex
add a comment |
I'm certain this must be a duplicate as there are lots of very similar questions, but none of the answers I can find work for me.
I have a set of .otf
font files (one each for the regular, italic, bold and bold italic versions) which I want to use as the default font in a XeLaTeX document. I've tried lots of ways of loading them, but here's a concrete example:
documentclassarticle
usepackagefontspec
setmainfontHelveticaNeueLTPro[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begindocument
Test
enddocument
At the moment, this test.tex
file plus the four .otf
files are in my home directory (/home/richard/
):
richard@fannich:~$ ls -l *.otf *.tex
-rw-r--r-- 1 richard richard 21608 Mar 14 21:44 HelveticaNeueLTPro-BdIt.otf
-rw-r--r-- 1 richard richard 22776 Mar 14 21:44 HelveticaNeueLTPro-Bd.otf
-rw-r--r-- 1 richard richard 17404 Mar 14 21:44 HelveticaNeueLTPro-It.otf
-rw-r--r-- 1 richard richard 26936 Mar 14 21:44 HelveticaNeueLTPro-Roman.otf
-rw-r--r-- 1 richard richard 290 Mar 14 21:57 test.tex
When I run xelatex test
, I get the following error:
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def)))))kpathsea:make_tex: Invalid fontname `[/home/richard/HelveticaNeueLTPro-Roman.otf]/OT', contains '['
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "HelveticaNeueLTPro-Roman" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.9 Extension = .otf]
So far as I can see, I've done exactly what is described in this answer. I've also tried putting the path in braces per this answer, though I think that's only necessary if you spaces or other special characters in the path. I've also tried using the old setmainfont
syntax per this answer, though my fontspec
package seems to be from 2017 (the TexLive packages are the Debian ones labelled 2016.20170123-5
). I've also tried using xltxtra
instead of fontspec
per this answer. I've tried removing the Extension = .otf
and appending .otf
to each font name. I've tried removing the Path
parameter as it's in the local directors. I've tried just putting a bare setmainfontHelveticaNeueLTPro-Roman.otf
. None of these change the error I see.
Any suggestions? One thing I can't do is install the fonts as root.
fonts xetex
add a comment |
I'm certain this must be a duplicate as there are lots of very similar questions, but none of the answers I can find work for me.
I have a set of .otf
font files (one each for the regular, italic, bold and bold italic versions) which I want to use as the default font in a XeLaTeX document. I've tried lots of ways of loading them, but here's a concrete example:
documentclassarticle
usepackagefontspec
setmainfontHelveticaNeueLTPro[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begindocument
Test
enddocument
At the moment, this test.tex
file plus the four .otf
files are in my home directory (/home/richard/
):
richard@fannich:~$ ls -l *.otf *.tex
-rw-r--r-- 1 richard richard 21608 Mar 14 21:44 HelveticaNeueLTPro-BdIt.otf
-rw-r--r-- 1 richard richard 22776 Mar 14 21:44 HelveticaNeueLTPro-Bd.otf
-rw-r--r-- 1 richard richard 17404 Mar 14 21:44 HelveticaNeueLTPro-It.otf
-rw-r--r-- 1 richard richard 26936 Mar 14 21:44 HelveticaNeueLTPro-Roman.otf
-rw-r--r-- 1 richard richard 290 Mar 14 21:57 test.tex
When I run xelatex test
, I get the following error:
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def)))))kpathsea:make_tex: Invalid fontname `[/home/richard/HelveticaNeueLTPro-Roman.otf]/OT', contains '['
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "HelveticaNeueLTPro-Roman" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.9 Extension = .otf]
So far as I can see, I've done exactly what is described in this answer. I've also tried putting the path in braces per this answer, though I think that's only necessary if you spaces or other special characters in the path. I've also tried using the old setmainfont
syntax per this answer, though my fontspec
package seems to be from 2017 (the TexLive packages are the Debian ones labelled 2016.20170123-5
). I've also tried using xltxtra
instead of fontspec
per this answer. I've tried removing the Extension = .otf
and appending .otf
to each font name. I've tried removing the Path
parameter as it's in the local directors. I've tried just putting a bare setmainfontHelveticaNeueLTPro-Roman.otf
. None of these change the error I see.
Any suggestions? One thing I can't do is install the fonts as root.
fonts xetex
I'm certain this must be a duplicate as there are lots of very similar questions, but none of the answers I can find work for me.
I have a set of .otf
font files (one each for the regular, italic, bold and bold italic versions) which I want to use as the default font in a XeLaTeX document. I've tried lots of ways of loading them, but here's a concrete example:
documentclassarticle
usepackagefontspec
setmainfontHelveticaNeueLTPro[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begindocument
Test
enddocument
At the moment, this test.tex
file plus the four .otf
files are in my home directory (/home/richard/
):
richard@fannich:~$ ls -l *.otf *.tex
-rw-r--r-- 1 richard richard 21608 Mar 14 21:44 HelveticaNeueLTPro-BdIt.otf
-rw-r--r-- 1 richard richard 22776 Mar 14 21:44 HelveticaNeueLTPro-Bd.otf
-rw-r--r-- 1 richard richard 17404 Mar 14 21:44 HelveticaNeueLTPro-It.otf
-rw-r--r-- 1 richard richard 26936 Mar 14 21:44 HelveticaNeueLTPro-Roman.otf
-rw-r--r-- 1 richard richard 290 Mar 14 21:57 test.tex
When I run xelatex test
, I get the following error:
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/xetex.def)))))kpathsea:make_tex: Invalid fontname `[/home/richard/HelveticaNeueLTPro-Roman.otf]/OT', contains '['
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "HelveticaNeueLTPro-Roman" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.9 Extension = .otf]
So far as I can see, I've done exactly what is described in this answer. I've also tried putting the path in braces per this answer, though I think that's only necessary if you spaces or other special characters in the path. I've also tried using the old setmainfont
syntax per this answer, though my fontspec
package seems to be from 2017 (the TexLive packages are the Debian ones labelled 2016.20170123-5
). I've also tried using xltxtra
instead of fontspec
per this answer. I've tried removing the Extension = .otf
and appending .otf
to each font name. I've tried removing the Path
parameter as it's in the local directors. I've tried just putting a bare setmainfontHelveticaNeueLTPro-Roman.otf
. None of these change the error I see.
Any suggestions? One thing I can't do is install the fonts as root.
fonts xetex
fonts xetex
asked 14 secs ago
richardrichard
354211
354211
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479550%2ferror-loading-otf-font-in-xelatex%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479550%2ferror-loading-otf-font-in-xelatex%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown