Bug 251665 - Add graphite smart font support
Summary: Add graphite smart font support
Status: RESOLVED UPSTREAM
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 2.1
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 14:46 UTC by RGBl
Modified: 2010-09-20 22:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample document with some graphite possibilities (14.23 KB, application/pdf)
2010-09-18 14:46 UTC, RGBl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RGBl 2010-09-18 14:46:46 UTC
Created attachment 51783 [details]
Sample document with some graphite possibilities

Version:           2.1 (using KDE 4.3.5) 
OS:                Linux

Graphite is an amazing smart font technology developed by SIL
Copy/pasting from wikipedia:

"Graphite is based on the TrueType font format, and adds three of its own tables. It allows for all kinds of smart rendering rules, including ligatures, glyph substitution, glyph insertion, glyph rearrangement, anchoring diacritics, kerning, and justification. Graphite rules may be sensitive to the context. For instance, there might be a glyph substitution rule that replaces every non-final s by an ſ.
In a Graphite font, all smart rendering information resides within the font file. In order to display the Graphite smart rendering, an application needs only Graphite support, but no built-in knowledge about the writing system's rendering. This makes Graphite especially suited for minority writing systems that cannot rely on applications to provide built-in rendering information. In this regard, Graphite is similar to AAT, but different from OpenType which requires applications to provide built-in rendering information."

I'm using it on OOo Writer and must say it is awesome: REAL sub/superscripts, REAL small caps, ligatures... everything just appending a proper "tag" to the font name. 
And I'm using a western language (mainly Spanish and Italian): for other languages Graphite is almost a must.
To understand how it works, just try Magyar Linux Libertine font on Writer, enable "tex mode" by adding :214=1 to the font name:

Magyar Linux Libertine G:214=1

and type something like SO_4^2^-
As far as I understand it (which is little), graphite support on OOo comes through pango-graphite library, which is gtk based...  It would be great to have this also on qt apps, specially Kword.

Sample pdf is attached.

Reproducible: Always

Steps to Reproduce:
Just use a graphite font on a document (Magyar Linux Libertine, Doulos SIL...)

Actual Results:  
Graphite fonts are treated as normal truetype fonts

Expected Results:  
Ability to use graphite substitution tables, either by graphical menu or by using "extended font names" as OOo do.

Graphite on wikipedia:
http://en.wikipedia.org/wiki/Graphite_(SIL)
Graphite on SIL website:
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&cat_id=RenderingGraphite
Magyar Linux Libertine font:
http://numbertext.org/linux/
Comment 1 Thomas Zander 2010-09-20 14:35:14 UTC
KWord does not implement font reading or rendering; Qt does. Please report your request for enhancement in the Qt bugtracker or coordinate with the trolls to write it.
http://bugreports.qt.nokia.com
Comment 2 RGBl 2010-09-20 22:48:42 UTC
Here it is:
http://bugreports.qt.nokia.com/browse/QTBUG-13750