We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Opentype features now enabled? Documentation? [closed]

asked 2016-11-18 09:32:42 +0200

David gravatar image

updated 2021-06-03 09:12:58 +0200

Alex Kemp gravatar image

According to a recent comment on the long-running "bug", #58941, Opentype features are now supported in LibO:

comment screenshot


  • Does anyone know which version this update appears in?
  • Is there any documentation on how LibO's Graphite features are accessed (given the comment!) -- I am aware of the documentation for Graphite-enabled Linux Libertine & Biolinum. Is it the same?

FWIW: I'm currently using Version: / Build ID: 1:5.2.3~rc2-0ubuntu1~xenial1, but can't coax/control OpenType features using the Linux Libertine G "syntax".

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2021-06-03 09:14:16.196736


The toolbar seems to work in 32 bits LO 5.2.3 on Windows 10, haven't tried all options.

floris v gravatar imagefloris v ( 2016-11-18 23:37:39 +0200 )edit

@floris-v Which toolbar? Can you post as an answer with examples (e.g., turning off/on a selected opentype feature)? Thanks!

David gravatar imageDavid ( 2016-11-19 15:57:24 +0200 )edit

The Typography toolbar, of course. You can enter text, ligatures will be applied, but you can turn that off for selected text. It automatically makes diagonal fractions, you have to type 1/2 and click Nut fractions to get those. Apparently you can't toggle settings on the toolbar, but it's a start.

floris v gravatar imagefloris v ( 2016-11-19 16:52:11 +0200 )edit

@floris-v The typography toolbar is for the Linux Libertine/Biolinum G fonts only: it doesn't work on Gentium Plus or any other Graphite font (the graphite tags are different), let alone OpenType ones. In fact, it is not maintained any more.

OpenType sopport is a completely different beast. AFAIK, the main problem here is lack of support on ODF, but considering that Graphite support is kind of an ODF hack too... let's see what happens!

RGB-es gravatar imageRGB-es ( 2016-11-19 18:32:33 +0200 )edit

@David Each Graphite font have its own set of "tags" to toggle the smart font features: you need to check the font documentation. In a nutshell: you need to add a tag and a parameter to the font name, something like

Linux Libertine G:smcp=1

will enable the small caps feature for Linux Libertine G.

RGB-es gravatar imageRGB-es ( 2016-11-19 18:37:51 +0200 )edit

@RGB-es Thanks for that -- you might have noticed I linked to the documentation for the Linux Lib&Bio G fonts in the question already... ;)

David gravatar imageDavid ( 2016-11-20 14:25:33 +0200 )edit

@floris-v As another commenter noted, the typography toolbar is an extension, and does not ship with LibO. But we'll see what news there is when 5.3 is released. Thanks anyway.

David gravatar imageDavid ( 2016-11-20 14:27:36 +0200 )edit

Okay, I got the point, mixed things up. Sorry about that.

floris v gravatar imagefloris v ( 2016-11-20 14:29:16 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2016-11-20 22:51:00 +0200

RGB-es gravatar image

OK, Just downloaded a daily build for 5.3 alpha and tried a couple of things and... IT WORKS!!!!

image description

The text is set on a decorative font called Kleymissky. Both lines have exactly the same text, but on the second one the font is set as


which activates the first stylistic set, changing the numbers into those symbols. For a list of OpenType tags you can check Dario Taraborelli's page.

As expected, if you save the file and then open it on 5.2.2, the tag is ignored, but open it again in 5.3 and you get it! YES!!!!

edit flag offensive delete link more


There's a big W00t!! Thanks for the test, report, and links. Good news!

David gravatar imageDavid ( 2016-11-21 16:55:40 +0200 )edit


Kitaysky gravatar imageKitaysky ( 2016-12-29 16:37:40 +0200 )edit

answered 2017-03-22 00:20:45 +0200

Jim DeLaHunt gravatar image

It is LibreOffice 5.3 which brings OpenType feature support. See the "Text Layout" section of the LibreOffice 5.3 release notes. "OpenType layout features can be controlled using the syntax previously only supported for Graphite fonts."

Here's a summary of the syntax:

  1. OpenType features are activated by add special codes to the end of the font name.
  2. Where you have UI that you can select a font from a pop-up menu, you likely can also type the font name. Two useful locations are:
    • the Font Name area in the Formatting toolbar,
    • the three Font Name selectors in the Character formatting dialogue, reached via menu item FormatCharacter…, then selecting the Font tab
    • the three Font Name selectors in the Paragraph Style formatting dialogue, reached via menu item Styles and Formatting, then right-clicking on a Style name, selecting Modify… from the popup menu,then selecting the Font tab
    • the Font Name area in the Properties sidebar,
  3. In those locations, select the font name, then click in the font name. A cursor appears. Use right-arrow to move to the end of the font name. Type ":" and the first code. Click OK or however you commit the change. The document will redraw, with features applied.
  4. The code consists of a 4-character "tag", with notation before or after it. Just the tag means "activate this feature", e.g. onum activates old-style numbers. A minus in front of the tag means "deactivate this feature". The tag followed by "=" then an integer means "assign the integer value to the tag for layout purposes", e.g. frac=1 enables arbitrary (diagonal) fractions, while frac=2 enables precomposed (nut) fractions.
  5. You can add multiple codes after the first code. To add a code, insert "&" as a separator, then the next code. e.g. :onum=1&pnum=1 activates both the Oldstyle Figures and Proportional Figures features.
  6. The authoritative list of OpenType feature tags is at https://www.microsoft.com/typography/... . Some fonts may define their own feature tags using the OpenType or Graphite mechanisms, e.g. http://www.numbertext.org/linux/fontf... . You might find that trying to figure out which fonts work with which tags on which versions of LO will be a bit of a mess. Sorry.
  7. Be aware that OpenType, and Graphite, and Apple Advanced Typography (AAT) are three different systems for defining how an application like LibreOffice should interact with a font to make text layout happen. They share common font structures, but the tag names and expected behaviour are different. This makes things more complicated. Sorry.

(Note to reader: I probably left something out of this, or stated it wrongly. Please improve this answer as we all learn more.)

edit flag offensive delete link more

answered 2016-11-19 16:39:58 +0200

David gravatar image

updated 2016-12-15 15:28:55 +0200

It seems that this feature will appear with the 5.3 release -- currently scheduled for the end of January 2017 -- and brings with it some other welcome developments. If anyone would like to try it now, this feature is already in the daily development builds.

And regarding documentation, here is a further update from the ongoing comments to the bug report thread:

The official OpenType feature registry is: https://www.microsoft.com/typography/otspec/featuretags.htm
Basically any feature listed there is supported.

HT: Khaled Hosny

edit flag offensive delete link more

Question Tools



Asked: 2016-11-18 09:32:42 +0200

Seen: 5,610 times

Last updated: Mar 22 '17