English

Anonymous

There are a lot of OpenType fonts out there which contain not only ligatures but also alternative glyphs, stylistis sets, old style numbers, lining/proportional numbers, true small caps and some even have true petite caps. MS Word supports some of these features but not all (no true small caps, for example). LibreOffice supports none of these OpenType features. Instead, it supports Graphite fonts, of which there is only a handful (unlike the hundreds of OpenType fonts available).

Are there any plans to implement OpenType advance typography feature support in LibreOffice? I think that this is a matter of some importance (and urgency), and it would give LibreOffice quite an advantage over MS Word and other word processors.

edit retag close delete

I wonder: does the difficulty of supporting OpenType have anything to do with LibreOffice using its own GUI toolkit and thus not being able to easily rely on libraries/frameworks such as Pango/Harfbuzz/Cairo?

( 2013-01-18 06:40:14 +0200 )edit

Who said it was difficult?

( 2013-04-08 00:35:22 +0200 )edit

It is probably not the most complex of tasks, but judging by various articles in TUGBoat and other publications in the TeX world, it is a daunting task, because implementing the OpenType specification is complex. If we are to judge by the number of complete OTF implementations (very few!) then I think we can infer that implementing it is complex. Complete implementations I know of: XeTeX and LuaTeX, Adobe CS and other DTP applications, but unfortunately not Scribus.

( 2013-04-08 16:50:43 +0200 )edit

See this Wikipedia article to get a good overview of the state of OpenType support. Things are getting better, but the situation is still far from ideal. Also, as a daily OS X user, I can confirm that OS X’s OpenType support is not that satisfactory: it is buggy and unreliable.

( 2013-04-08 19:21:16 +0200 )edit
1

Even XeTeX isn't complete, as you can see by scrolling almost to the bottom of this page. It is missing Swash, Ornaments, Slashed Zero, Justification Alternates, Alternate Annotation, Mathematical Greek (??), Localized Forms, Glyph (De)Composition, Required Ligatures, Mark Positioning Via Subs, and Isolated Form.

( 2013-04-11 19:15:18 +0200 )edit

Thanks for pointing this out, I had forgotten about such gory details :-). This article, and the “ilovetypography.com” site in general, is a great resource.

( 2013-04-11 21:18:51 +0200 )edit
1

At least it looks like Caolan McNamara has implemented localized forms separately, as shown by oweng in the comments of my answer.

( 2013-05-21 22:05:20 +0200 )edit
1

Here's a complete Web implementation of OpenType: http://www.impallari.com/testing/ And its source code: https://github.com/impallari/font-testing-page

( 2013-05-22 21:30:23 +0200 )edit

Sort by » oldest newest most voted

You might want to see (and help out with) Bug 58941 - Support optional smartfont features.

more

The “bug ID” is said to be invalid when following the link.

( 2013-01-31 17:31:27 +0200 )edit

It works now. ;)

( 2013-02-06 23:19:02 +0200 )edit

Thanks. This bug has some interesting comments. I agree with one of the commenters: XeTeX has the best OpenType support right now and LibreOffice could definitely build on that. XeTeX’s smart font handling is based a modified version of ICU, which is already used from LibO 4.0 onwards for regexp.

( 2013-02-07 03:11:01 +0200 )edit

Update: XeTeX is now based on Pango/Harfbuzz, which is the sexier, actively-developed and emerging solution for OpenType support. Possibility: let OpenOffice remain the ICU-using IBM-style suite, and let LibO embrace the future with Pango and Harfbuzz.

( 2013-05-21 05:08:39 +0200 )edit
1

@CyanCG, a comment by Caolán McNamara here states, "There is an experimental use-harfbuzz patch that we should get around to applying ...", so I guess you can expect LO to eventually replace ICU with Harfbuzz at some point.

( 2013-05-21 08:58:02 +0200 )edit

@oweng I've submitted a comment at Caolan's post to which you linked; it's still awaiting moderation. I informed him of this question and the related bug 58941 to which you linked, and also of the importance of supporting more OpenType features.

( 2013-05-21 21:58:19 +0200 )edit
1

@oweng McNamara has posted my comment and responded with "LibreOffice will support them when someone writes the relatively small pieces of code, UI glue and flags to enagle [sic] them." So, it would appear that this is an easy job.

( 2013-05-25 07:00:03 +0200 )edit

Of course it would (will!) be wonderful to have Open Type supported by LO.

In the meantime, Graphite fonts are not to be sneered at (not that anyone here is sneering!) In addition to the complex Roman+ fonts listed at the Graphite site, there are also the beautiful (IMO) and versatile Linux Libertine and Biolinum Graphite-enabled fonts (+ link to PDF documentation).

So, if "Anonymous" original poster is still watching: while waiting for Open Type to become fully supported, at least make good use of such Graphite fonts as are available!

more

2

+1. I cannot mark this up enough. In basic terms supporting OpenType = supporting Adobe, which would seem at odds with an open source project like LO. As @David mentions the SIL Graphite fonts are exceptionally good. IMO it is better to have one great font than a dozen poor ones.

( 2013-05-21 10:13:16 +0200 )edit
2

As I recall the OpenType specification is an open standard, so there's nothing wrong with implementing it.

( 2013-05-21 21:50:13 +0200 )edit
1

It is not that simple. OOXML is "open" too, but using it merely promotes MS and is highly contentious as indicated on the mailing list. It is in the interests of LO to promote platform agnostic solutions i.e., Graphite (over OT / AAT). PostScript outline fonts are not likely to be embeddable within an editable document e.g., ODF. Ask Adobe why that might be.

( 2013-05-22 02:55:11 +0200 )edit
2

I don’t believe that implementing OpenType implies being awkwardly encumbered the way implementing OOXML does. The modern TeX engines (XeTeX and LuaTeX) implement OpenType with much success and they are both free software projects (XeTeX was actually started by a SIL employee). Yes, Graphite is an excellent technology that deserves more widespread use: right now, it is not implemented on OS X and I wish it was.

( 2013-05-22 19:29:53 +0200 )edit

I'm interested: does the Graphite in LibreOffice not work on OS X?

( 2013-05-22 21:13:26 +0200 )edit

That’s right, it doesn’t work. the Wikipedia article on Graphite says “ According to SIL, Mac OS X support is not planned since with AAT, Mac already provides a technology suitable for minority scripts”. I tested it, and when feature tags are applied with Libertine G the font is replaced with a generic sans serif font instead.

( 2013-05-23 05:28:46 +0200 )edit

Now that I think about it though, when the right experimental feature is enabled in Firefox on OS X in the about:config menu, Graphite is supposed to work. I tested OpenType in this way in Firefox, but I don’t remember testing Graphite, so I can’t say yet whether it really does work.

( 2013-05-23 05:32:16 +0200 )edit
2

@CyanCG re. my simplistic OOXML/OT comparison I accept your criticism. Like @Uglyface200, I was under the impression that Graphite2 was being actively developed for MacOS, although I have not looked at it for some time. This blog post by Khaled Hosny regarding LO/XeTeX porting to Harfbuzz (incl. Graphite2) is relevant.

( 2013-05-23 06:05:39 +0200 )edit
1

@CyanCG, I feel that Wikipedia quotation requires a "[citation needed]" tag. If you know of evidence supporting the claim I would be interested (and saddened) to know of it. EDIT: A quick test of Graphite support for ligatures under MacOS 10.6.8 / LOv4.0.3.3 using Linux Libertine G shows this appears to be working. Which particular Graphite features are you not seeing?

( 2013-05-23 06:11:42 +0200 )edit
1

@CyanCG : Re : Graphite support in Firefox (on Mac). You can get a decent test page here: http://phjamr.github.io/miao.html#graphite-firefox and scroll down a bit. (Assuming you've done the "about:config" search "graphite" > "enabled | true" thing, of course.) FWIW.

( 2013-05-23 10:56:34 +0200 )edit

While it is not specifically mentioned in the original question I thought this thread should note that support for the OpenType locl feature (localized forms) is also now supported (FDO#62154). I imagine this feature will be available in v4.1.0.

more

According to this bug report OpenType/OTF ligatures are properly supported.

HOWEVER, I have not been able to get them to work at all, despite this functionality being apparently supported in the up-to-date version of LibreOffice I have. So, your mileage may vary.

more

The questioner specifically excluded ligatures as something he wants. I frequently access stylistic sets, and hate having to use Word to get an alternate g, so +1 for this feature from me.

( 2013-01-19 23:35:54 +0200 )edit

The solution that works best for me right now is to only make basic typography in LibO, then export the document with Writer2LaTeX 1.2, change a few commands to get small caps, real sup/sub etc. and typeset with XeTeX.

( 2013-02-07 03:13:00 +0200 )edit

...which doesn't exactly work for those of us who don't want to take the time to download and learn a whole programming language for a few aesthetic changes.

( 2013-02-13 21:43:33 +0200 )edit

I wholeheartedly agree: in the long run, it is very necessary to support all of OpenType. From what I gather, it seems that this would be easier if LibreOffice used Harfbuzz for rendering. This would give LibO a very good edge on MS Office and many other products.

( 2013-02-13 22:30:53 +0200 )edit

Now, if only the developers could give us some information on how easy/difficult this would be to implement. I'm sure the LibO community would be glad to help.

( 2013-02-14 17:12:15 +0200 )edit

Certainly. I’m a newbie when it comes to programming, but when I have the time I want to write a detailed “enhancement bug” report, because I want to make sure that those who are responsible for this part of the code base understand how important it is. See this article.

( 2013-02-14 17:49:24 +0200 )edit

Maybe a workaround could be the Writer2LaTeX extension (http://writer2latex.sourceforge.net/), as it "converts documents into LaTeX 2e format for high quality typesetting".

But it is cumbersome to use, as you have to install two packages on your system (LibreOffice and LaTeX).

more

( 2013-05-21 05:14:30 +0200 )edit

Using Debian Lenny, OpenType fonts features (contextual alternates an ligatures) work. It is a revolution. Simply put, LibreOffice suddenly became modern.

• What marks this milestone: the version 4?
• What on systems other than Debian?
more

4.1 brings this to OS X with Core Text and to Linux with Pango/Harfbuzz.

( 2013-08-09 22:52:33 +0200 )edit

...and windows XP ??? Left in the cold because it is old???

( 2013-08-10 03:42:24 +0200 )edit
1

I have no idea about Windows XP specifically. What I do know is that, on Windows, the modern and “correct” way to implement OpenType is with Windows Presentation Foundation, which is a .NET technology. An alternate way of implementing OpenType is possible, but I am not aware of many applications that implement advanced OpenType features on Windows besides Adobe’s suite.

( 2013-08-10 04:53:30 +0200 )edit