How to turn on font features with Libertine and LuaLaTeX?
up vote
3
down vote
favorite
I'd like to get the Libertine fonts with the font features hlig
, liga
and onum
, and also load the relevant mono font and Biolinum for the sans font.
It seems I can simply use usepackage{libertine}
to get the font with LuaTeX according to the Libertine documentation, but having read that plus the fontspec documentation, I'm not able to figure out how to actually turn on these features. Something to do with Ligatures=Common
, Ligatures=Historic
, etc. but where do I put these?
fonts luatex
add a comment |
up vote
3
down vote
favorite
I'd like to get the Libertine fonts with the font features hlig
, liga
and onum
, and also load the relevant mono font and Biolinum for the sans font.
It seems I can simply use usepackage{libertine}
to get the font with LuaTeX according to the Libertine documentation, but having read that plus the fontspec documentation, I'm not able to figure out how to actually turn on these features. Something to do with Ligatures=Common
, Ligatures=Historic
, etc. but where do I put these?
fonts luatex
Did you try (a) loading thefontspec
package and (b) issuing the instructionsetmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'd like to get the Libertine fonts with the font features hlig
, liga
and onum
, and also load the relevant mono font and Biolinum for the sans font.
It seems I can simply use usepackage{libertine}
to get the font with LuaTeX according to the Libertine documentation, but having read that plus the fontspec documentation, I'm not able to figure out how to actually turn on these features. Something to do with Ligatures=Common
, Ligatures=Historic
, etc. but where do I put these?
fonts luatex
I'd like to get the Libertine fonts with the font features hlig
, liga
and onum
, and also load the relevant mono font and Biolinum for the sans font.
It seems I can simply use usepackage{libertine}
to get the font with LuaTeX according to the Libertine documentation, but having read that plus the fontspec documentation, I'm not able to figure out how to actually turn on these features. Something to do with Ligatures=Common
, Ligatures=Historic
, etc. but where do I put these?
fonts luatex
fonts luatex
edited Dec 6 at 0:12
asked Dec 6 at 0:05
Roxy
3465
3465
Did you try (a) loading thefontspec
package and (b) issuing the instructionsetmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19
add a comment |
Did you try (a) loading thefontspec
package and (b) issuing the instructionsetmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19
Did you try (a) loading the
fontspec
package and (b) issuing the instruction setmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19
Did you try (a) loading the
fontspec
package and (b) issuing the instruction setmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
Something like this? (to be compiled under LuaLaTeX or XeLaTeX)
Speaking for myself, I find Ligatures={Common,Rare,Historic}, Numbers=OldStyle
easier to read than RawFeature=+liga;+dlig;+hlig;+onum
.
documentclass{article}
usepackage{fontspec}
setmainfont{Linux Libertine O}%
[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
begin{document}
0123456789
ff fi fj fl ft ffi ffl fft, tt, ct st
itshape
ff fi fj fl ft ffi ffl fft, tt, ct st
end{document}
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could runsetsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
aftersetmainfont
. Not sure which mono font you consider to be the "relevant" one.
– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,RawFeature
makes more sense to me.
– Roxy
Dec 6 at 4:17
add a comment |
up vote
2
down vote
From page 3 of the libertine
package manual:
The option
defaultfeatures=...
allows the user to add default OpenType features.
You can therefore do this in XeLaTeX or LuaLaTeX:
documentclass[varwidth, preview]{standalone}
usepackage[defaultfeatures={Ligatures={Common, Historic, TeX}}
]{libertine}
begin{document}
Test
end{document}
You can also use another package, such as libertine-otf
, with a Ligatures=
package option. Or bypass the package entirely and use fontspec
.
add a comment |
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',
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%2f463432%2fhow-to-turn-on-font-features-with-libertine-and-lualatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Something like this? (to be compiled under LuaLaTeX or XeLaTeX)
Speaking for myself, I find Ligatures={Common,Rare,Historic}, Numbers=OldStyle
easier to read than RawFeature=+liga;+dlig;+hlig;+onum
.
documentclass{article}
usepackage{fontspec}
setmainfont{Linux Libertine O}%
[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
begin{document}
0123456789
ff fi fj fl ft ffi ffl fft, tt, ct st
itshape
ff fi fj fl ft ffi ffl fft, tt, ct st
end{document}
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could runsetsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
aftersetmainfont
. Not sure which mono font you consider to be the "relevant" one.
– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,RawFeature
makes more sense to me.
– Roxy
Dec 6 at 4:17
add a comment |
up vote
2
down vote
accepted
Something like this? (to be compiled under LuaLaTeX or XeLaTeX)
Speaking for myself, I find Ligatures={Common,Rare,Historic}, Numbers=OldStyle
easier to read than RawFeature=+liga;+dlig;+hlig;+onum
.
documentclass{article}
usepackage{fontspec}
setmainfont{Linux Libertine O}%
[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
begin{document}
0123456789
ff fi fj fl ft ffi ffl fft, tt, ct st
itshape
ff fi fj fl ft ffi ffl fft, tt, ct st
end{document}
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could runsetsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
aftersetmainfont
. Not sure which mono font you consider to be the "relevant" one.
– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,RawFeature
makes more sense to me.
– Roxy
Dec 6 at 4:17
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Something like this? (to be compiled under LuaLaTeX or XeLaTeX)
Speaking for myself, I find Ligatures={Common,Rare,Historic}, Numbers=OldStyle
easier to read than RawFeature=+liga;+dlig;+hlig;+onum
.
documentclass{article}
usepackage{fontspec}
setmainfont{Linux Libertine O}%
[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
begin{document}
0123456789
ff fi fj fl ft ffi ffl fft, tt, ct st
itshape
ff fi fj fl ft ffi ffl fft, tt, ct st
end{document}
Something like this? (to be compiled under LuaLaTeX or XeLaTeX)
Speaking for myself, I find Ligatures={Common,Rare,Historic}, Numbers=OldStyle
easier to read than RawFeature=+liga;+dlig;+hlig;+onum
.
documentclass{article}
usepackage{fontspec}
setmainfont{Linux Libertine O}%
[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
begin{document}
0123456789
ff fi fj fl ft ffi ffl fft, tt, ct st
itshape
ff fi fj fl ft ffi ffl fft, tt, ct st
end{document}
edited Dec 6 at 0:24
answered Dec 6 at 0:21
Mico
272k30369756
272k30369756
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could runsetsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
aftersetmainfont
. Not sure which mono font you consider to be the "relevant" one.
– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,RawFeature
makes more sense to me.
– Roxy
Dec 6 at 4:17
add a comment |
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could runsetsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
aftersetmainfont
. Not sure which mono font you consider to be the "relevant" one.
– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,RawFeature
makes more sense to me.
– Roxy
Dec 6 at 4:17
That's it, thanks.
– Roxy
Dec 6 at 0:24
That's it, thanks.
– Roxy
Dec 6 at 0:24
To add the associated sans-serif font, you could run
setsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
after setmainfont
. Not sure which mono font you consider to be the "relevant" one.– Mico
Dec 6 at 0:31
To add the associated sans-serif font, you could run
setsansfont{Linux Biolinum O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
after setmainfont
. Not sure which mono font you consider to be the "relevant" one.– Mico
Dec 6 at 0:31
Hmm, I think because I know the raw feature names,
RawFeature
makes more sense to me.– Roxy
Dec 6 at 4:17
Hmm, I think because I know the raw feature names,
RawFeature
makes more sense to me.– Roxy
Dec 6 at 4:17
add a comment |
up vote
2
down vote
From page 3 of the libertine
package manual:
The option
defaultfeatures=...
allows the user to add default OpenType features.
You can therefore do this in XeLaTeX or LuaLaTeX:
documentclass[varwidth, preview]{standalone}
usepackage[defaultfeatures={Ligatures={Common, Historic, TeX}}
]{libertine}
begin{document}
Test
end{document}
You can also use another package, such as libertine-otf
, with a Ligatures=
package option. Or bypass the package entirely and use fontspec
.
add a comment |
up vote
2
down vote
From page 3 of the libertine
package manual:
The option
defaultfeatures=...
allows the user to add default OpenType features.
You can therefore do this in XeLaTeX or LuaLaTeX:
documentclass[varwidth, preview]{standalone}
usepackage[defaultfeatures={Ligatures={Common, Historic, TeX}}
]{libertine}
begin{document}
Test
end{document}
You can also use another package, such as libertine-otf
, with a Ligatures=
package option. Or bypass the package entirely and use fontspec
.
add a comment |
up vote
2
down vote
up vote
2
down vote
From page 3 of the libertine
package manual:
The option
defaultfeatures=...
allows the user to add default OpenType features.
You can therefore do this in XeLaTeX or LuaLaTeX:
documentclass[varwidth, preview]{standalone}
usepackage[defaultfeatures={Ligatures={Common, Historic, TeX}}
]{libertine}
begin{document}
Test
end{document}
You can also use another package, such as libertine-otf
, with a Ligatures=
package option. Or bypass the package entirely and use fontspec
.
From page 3 of the libertine
package manual:
The option
defaultfeatures=...
allows the user to add default OpenType features.
You can therefore do this in XeLaTeX or LuaLaTeX:
documentclass[varwidth, preview]{standalone}
usepackage[defaultfeatures={Ligatures={Common, Historic, TeX}}
]{libertine}
begin{document}
Test
end{document}
You can also use another package, such as libertine-otf
, with a Ligatures=
package option. Or bypass the package entirely and use fontspec
.
answered Dec 6 at 0:24
Davislor
4,372923
4,372923
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f463432%2fhow-to-turn-on-font-features-with-libertine-and-lualatex%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
Did you try (a) loading the
fontspec
package and (b) issuing the instructionsetmainfont{Linux Libertine O}[Ligatures={Common,Rare,Historic}, Numbers=OldStyle]
– Mico
Dec 6 at 0:19