OpenDocument and Qt fonts goodness

· by Thomas Zander · 2 min read · original post ↗

·

Lots of goodness has been happening with the Open Document Format. Well, not the format itself, that has been an ISO standard for some time and that kind of implies it gets a bit boring. Fileformats being boring is, much like in governments, a good thing. Boring means stable. And we need a stable Foundation. (bonus points to the people that got the reference ;) )

Like South Africa Adopts ODF, German Foreign Office comes out in favor of ODF and there are various articles going over how Holland and Belgium are steadilly switching governments but also schools over to ODF.

More close to home; my favorite OpenDocument Format implementation KOffice is based on Qt and version two will be released after Qt4.4 is out as 4.4 is going to bring a lot of improvements for it. I’m working through some of the features that we see in ODF which are pretty advanced nice little things. As you may be aware, ODF has a very wide ranging featureset. Advanced DTP like features is not something you might suspect, but its there. This is stuff I’m currently working on.
Qt4.4 will have a new “Letter Spacing” feature. Which is described in the API docs like; Letter spacing changes the default spacing between individual letters in the font. The spacing between the letters can be made smaller as well as larger.
In typesetting letter spacing is a much used feature to manipulate a text layout. This is now available for all Qt users.

Another feature is wordspacing. Which is similar to letter spacing, except it only affects the space between words.

Finally I introduced various capitalization modes for text. A text can be turned into all-caps or all-lowercase text by just changing a font-property. The neat effect is that you don’t have to actually change the text to get all characters to appear in uppercase or lowercase.
A special capitalization mode is “SmallCaps”. Smallcaps is a typigraphical technique used to put more emphesis on a piece of text without making it look like its screaming.

btw, if any of these features sound familiar from the css spec; thats entirely possible since ODF just mirrors a lot of the CSS features. No point in re-inventing the wheel, right? Naturally in ODF they are made with print-quality text in mind. Qt4.4 will support both without problems.

QtKDE

More on KDE

More from Thomas Zander