Error loading .otf font in xelatexHow do I use an OpenType font with my LaTeX document?Use an *.otf font with...
Be in awe of my brilliance!
Cultural lunch issues
What is IP squat space
Rejected in 4th interview round citing insufficient years of experience
How is the Swiss post e-voting system supposed to work, and how was it wrong?
What is the greatest age difference between a married couple in Tanach?
I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver
Do I need life insurance if I can cover my own funeral costs?
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
Can hydraulic brake levers get hot when brakes overheat?
Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?
Identifying the interval from A♭ to D♯
Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?
Sword in the Stone story where the sword was held in place by electromagnets
Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?
Why are the outputs of printf and std::cout different
Theorems like the Lovász Local Lemma?
Simulating rnorm() using runif()
Official degrees of earth’s rotation per day
Is a lawful good "antagonist" effective?
Is it true that real estate prices mainly go up?
SQL Server Primary Login Restrictions
Pinhole Camera with Instant Film
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 updateHow do I use TrueType Fonts with PDFTeX using otftotfm?combine usepackage{times} and fontspec setmainfontUse an *.otf font with fontspecXeLatex otf font won't loadUnable to change font with ModernCVArnoPro font loading in xelatexCan't get small caps to work when defining specific font file in fontspecSlanted text problem for the main (cmr) font in XeLaTeX with fontspecConTeXt: Define fonts with additional non-standard styles, alternatives and sizesXeLaTeX: Installed Italic font not appearing
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:
documentclass{article}
usepackage{fontspec}
setmainfont{HelveticaNeueLTPro}[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begin{document}
Test
end{document}
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 setmainfont{HelveticaNeueLTPro-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:
documentclass{article}
usepackage{fontspec}
setmainfont{HelveticaNeueLTPro}[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begin{document}
Test
end{document}
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 setmainfont{HelveticaNeueLTPro-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:
documentclass{article}
usepackage{fontspec}
setmainfont{HelveticaNeueLTPro}[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begin{document}
Test
end{document}
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 setmainfont{HelveticaNeueLTPro-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:
documentclass{article}
usepackage{fontspec}
setmainfont{HelveticaNeueLTPro}[
Path = /home/richard/,
UprightFont = *-Roman,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Extension = .otf]
begin{document}
Test
end{document}
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 setmainfont{HelveticaNeueLTPro-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 6 mins 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