https://bugs.freedesktop.org/show_bug.cgi?id=58941

--- Comment #38 from Christian Gagné <[email protected]> ---
The ODF 1.2 spec cites the CSS3 Text Module as a non-normative reference. The
CSS3 Text namespace is typically included in ODT documents produced by
LibreOffice Writer. Because of this, it seems logical and justified to use the
[CSS Fonts Module Level 3](http://www.w3.org/TR/css3-fonts/) for all advanced
typographic features. This CSS module takes into account the three major smart
font technologies: OpenType, Graphite and AAT. It now has “Candidate
Recommendation” status and it is set to become a Recommendation relatively
soon.

Using this module’s vocabulary in attributes on the `style:text-properties`
element seems straightforward. An added benefit is that the `style:font-name`
and other such attributes would not be overloaded with font feature names.

Consider the following example:

    <style:style
     style:name='cited-author'
     style:family='text'>

      <style:text-properties
       style:font-name='Linux Libertine O'
       css3f:font-synthesis='none'
       css3f:font-variant-caps='small-caps'
      />

    </style:style>

This would be roughly equivalent to the following CSS:

    .cited-author {
      font-family: 'Linux Libertine O', serif;
      font-synthesis: none;
      font-variant-caps: small-caps;
    }

Note that I use `css3f` to refer to the CSS3 Fonts namespace, which is coherent
with the namespace prefix already used for the CSS3 Text Module (`css3t`) in
ODF.

[Appendix A](http://www.w3.org/TR/css3-fonts/#platform-props-to-css)
(non-normative) begins thus: “Font properties in CSS are designed to be
independent of the underlying font formats used”. Indeed, the new syntax for
feature selection is different from the terse OpenType tags and is more in line
with the rest of CSS’s vocabulary. This generality is very desirable for ODF as
well. In addition to new @-rules and new `font-variant` properties, low-level
control of OpenType features is also available through the
`font-feature-settings` property, but this is less general and should only be
used for complex and unusual combinations of OpenType features which cannot be
expressed in another way.

I cannot think of a better way to correctly model advanced typography in ODF.
It is clean, standard and takes us away from the limitations of the Formatting
Objects vocabulary. It would also give LibreOffice *quite an edge* over MS
Office. It’s the way forward! ;-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to