You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace "Linux Libertine" with the more up to date fork "Libertinus Serif" #1257
feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.urgentShould be fixed before the next release.
Is this issue has some difficulties to be resolved or why it seems that there is no progress for a while now?
Adding the new font is easy, but I fear that changing the default font will involve quite a lot of churn where people have the name of the old font in their document.
Sure, but the longer you wait the harder it will get, and Linux Libertine is an abandoned project with hundreds of known issues that are fixed in Libertinus.
I suggest some sort of migration period where both fonts are included and any use of the former throws a warning that it will be removed from built-in status in a future version, suggesting the new name. The longer you wait to announce such a deprecation the more documents will be faced with transition.
I don't see any issues with documents using old font.
If the old font will be deprecated and still included, then literally nothing will change except the default (unset) font (which still looks almost exactly the same as the current default font).
Typst is still in beta, which means that there are probably will be more breaking changes, which means that changing default font (and removing an old one) can be just another breaking change in the next beta release.
As @alerque said, the longer you wait, the more of an impact the change will bring.
It will be a bit strange if someone would explicitly set "Linux Libertine" in a set rule while not having the set font installed locally and while the set font is the default one anyway (doc says about default font).
P.S.
It wasn't easy finding "Free alternative fonts to Times New Roman" because all the answers were a list of completely different free fonts (maybe not even free). So eventually I found Liberation font family which is kinda similar but has rough serifs instead of round ones. And only recently I found out that the default Typst font, which actually has much more similarities to the "infamous" Times New Roman. But now I discovered that there is actually an updated version of it.
The point is that I thought of "Why not Liberation Serif?", and now I know why.
And as a side note, I'm a bit disappointed that Linux Libertine/Libertinus Serif has digits that are noticeably smaller/shorter/lower than in Times New Roman or Liberation Serif. If only digits were of the same height as letters, then this would be the ultimate free alternative.
And as a side note, I'm a bit disappointed that Linux Libertine/Libertinus Serif has digits that are noticeably smaller/shorter/lower than in Times New Roman or Liberation Serif. If only digits were of the same height as letters, then this would be the ultimate free alternative.
The Libertinus project has an explicit goal of following the design (and where possible, metrics) of the defunct Linux Libertine project while fixing bugs and adding features like new character ranges. The design choice for digits to follow the font height instead of ascender height is not one we'll be changing by default (some fonts do it one way, some another), but there are unused style-sets and even number related options like lnum that could be used to provide an alternative set of glyphs at a different height. The project is open source and although I've been a bit intermittent with attention it is open to contributions if you wanted to contribute something like that.
Oh yeah, there is a text(number-type: "lining") which enables lnum font feature that does (should do) exactly what I want. But in order to contribute, I need to learn much more about fonts and how to make them, for which I just don't have time. But maybe in the future, if no one will make it (lnum) by then.
@alerque Is there also a TTF version of Libertinus Serif rather than an OTF? I'm asking for two reasons:
Typst subsets those better. It's maybe not that big of a deal, but a bit unfortunate that the size of a hello world PDF grows from 11KB to 64KB.
We've had some issues with wrong printing in the past, which happened mostly (maybe even exclusively) with OTF fonts rather than TTF ones. That's of course our and not the font's fault, but I'm still careful to make an OTF font the default before I'm sure those are resolved.
Is this related to #895? Do "inefficient font subsetting" stack (adds up) with "OTF is bigger than TTF"? Meaning that combined, they will increase file size even more than just one of them alone.
It doesn't stack, I am referring to the subsetting. The primary file is often smaller with the OTF, but the subsetting process is way more complex.
OTF and CFF are the same in this context. OTF is the file ending of a CFF font in an OpenType container, while TTF is the file ending of a TrueType font in an OpenType container.
OTF and CFF are the same in this context. OTF is the file ending of a CFF font in an OpenType container, while TTF is the file ending of a TrueType font in an OpenType container.
Ok, I'm washing my hands out of this one. This sounds very complicated because of the many variable parts (how can you keep track of all these naming shenanigans??). It's like Unicode and UTF-8 but on a whole another level. Thanks for clarifying.
Since Typst's subsetting has improved (#4373), I created a hello world PDF using main with both fonts, and the size of the PDF with Libertinus Serif is now smaller. From 0.11.1 to main,
Linux Libertine 12KiB -> 7.6KiB
Libertinus Serif 63KiB -> 5.4KiB
Though there are still the possible printing issues - #1257 (comment). I don't know whether the situation has changed there.
feature requestNew feature or requesttextRelated to the text category, which is all about text handling, shaping, etc.urgentShould be fixed before the next release.
Activity
Enivex commentedon May 21, 2023
@reknih Regarding the label, doesn't the binary also ship with this font? I thought it was the actual default.
reknih commentedon May 23, 2023
It does! More like an "and" thing
Andrew15-5 commentedon Oct 4, 2023
Is this issue has some difficulties to be resolved or why it seems that there is no progress for a while now?
laurmaedje commentedon Oct 5, 2023
Adding the new font is easy, but I fear that changing the default font will involve quite a lot of churn where people have the name of the old font in their document.
alerque commentedon Oct 5, 2023
Sure, but the longer you wait the harder it will get, and Linux Libertine is an abandoned project with hundreds of known issues that are fixed in Libertinus.
I suggest some sort of migration period where both fonts are included and any use of the former throws a warning that it will be removed from built-in status in a future version, suggesting the new name. The longer you wait to announce such a deprecation the more documents will be faced with transition.
Andrew15-5 commentedon Oct 5, 2023
I don't see any issues with documents using old font.
setrule while not having the set font installed locally and while the set font is the default one anyway (doc says about default font).P.S.
It wasn't easy finding "Free alternative fonts to Times New Roman" because all the answers were a list of completely different free fonts (maybe not even free). So eventually I found Liberation font family which is kinda similar but has rough serifs instead of round ones. And only recently I found out that the default Typst font, which actually has much more similarities to the "infamous" Times New Roman. But now I discovered that there is actually an updated version of it.
The point is that I thought of "Why not Liberation Serif?", and now I know why.
And as a side note, I'm a bit disappointed that Linux Libertine/Libertinus Serif has digits that are noticeably smaller/shorter/lower than in Times New Roman or Liberation Serif. If only digits were of the same height as letters, then this would be the ultimate free alternative.
alerque commentedon Oct 21, 2023
@Andrew15-5
re P.S.
The Libertinus project has an explicit goal of following the design (and where possible, metrics) of the defunct Linux Libertine project while fixing bugs and adding features like new character ranges. The design choice for digits to follow the font height instead of ascender height is not one we'll be changing by default (some fonts do it one way, some another), but there are unused style-sets and even number related options like lnum that could be used to provide an alternative set of glyphs at a different height. The project is open source and although I've been a bit intermittent with attention it is open to contributions if you wanted to contribute something like that.
Andrew15-5 commentedon Oct 23, 2023
re P.S.
Oh yeah, there is a
text(number-type: "lining")which enableslnumfont feature that does (should do) exactly what I want. But in order to contribute, I need to learn much more about fonts and how to make them, for which I just don't have time. But maybe in the future, if no one will make it (lnum) by then.Andrew15-5 commentedon Oct 23, 2023
So, can we expect a new default font in the v0.9?
laurmaedje commentedon Nov 27, 2023
@alerque Is there also a TTF version of Libertinus Serif rather than an OTF? I'm asking for two reasons:
Andrew15-5 commentedon Nov 27, 2023
kB*
Is this related to #895? Do "inefficient font subsetting" stack (adds up) with "OTF is bigger than TTF"? Meaning that combined, they will increase file size even more than just one of them alone.
#895 (comment):
Does this mean that some built-in Typst fonts are already in CFF format? So OTF is not the only one that can greatly increase file size.
laurmaedje commentedon Nov 27, 2023
It doesn't stack, I am referring to the subsetting. The primary file is often smaller with the OTF, but the subsetting process is way more complex.
OTF and CFF are the same in this context. OTF is the file ending of a CFF font in an OpenType container, while TTF is the file ending of a TrueType font in an OpenType container.
Andrew15-5 commentedon Nov 27, 2023
Ok, I'm washing my hands out of this one. This sounds very complicated because of the many variable parts (how can you keep track of all these naming shenanigans??). It's like Unicode and UTF-8 but on a whole another level. Thanks for clarifying.
Enivex commentedon Mar 15, 2024
Another reason for updating to Libertinus Serif:
mkorje commentedon Aug 9, 2024
Since Typst's subsetting has improved (#4373), I created a hello world PDF using main with both fonts, and the size of the PDF with Libertinus Serif is now smaller. From
0.11.1tomain,Though there are still the possible printing issues - #1257 (comment). I don't know whether the situation has changed there.
laurmaedje commentedon Aug 9, 2024
The printer issues should be resolved. I do plan to switch to Libertinus before the next release, hence the urgent label.
laurmaedje commentedon Sep 16, 2024
#4969