I downloaded Linux Libertine G from https://www.numbertext.org/linux/ and
also took a look at the pdf manual and discovered a long list of font
features. It appeared at first impossible to access them, but there's an
undocumented way to do it. (Maybe someone should document this!)
This activates the small caps feature:
font = "Linux Libertine G:fontfeatures=smcp=1";
text("abcdefghijklmnop012345689", font=font);
[image: image.png]
I noticed that the font inserts space every thousand in my numbers.
Another interesting example:
font = "Linux Libertine G:fontfeatures=frac=1";
text("1/2 1/3 1/9 1/10 1/72 73/324", font=font);
[image: image.png]
There seems to be a problem with the frac=2 option, though:
[image: image.png]
On 8/3/2025 10:24 AM, Adrian Mariano via Discuss wrote:
(Maybe someone should document this!)
OpenSCAD generally doesn't document fontconfig operation. That would be
OK, if fontconfig operation was actually documented - but it isn't.
So yes, maybe we should take on documenting it, either in the context of
OpenSCAD alone or by contributing documentation upstream to fontconfig.
On 03.08.25 19:24, Adrian Mariano via Discuss wrote:
Maybe someone should document this!
It already is now: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text
ciao,
Torsten.
On 03.08.25 19:24, Adrian Mariano via Discuss wrote:
There seems to be a problem with the frac=2 option, though:
Looks like the reason for the issue is already found
https://github.com/harfbuzz/harfbuzz/issues/5439
ciao,
Torsten.