By carrying the styleName through from QFontDef to bestFoundry and giving it to bestStyle that can use it we can accurately match fonts based on styleName. This makes it possible to match styles such as DejaVu Sans Condensed and Ubuntu Medium. The example fontsampler is updated so it can actually sample all the different styles it lists. Change-Id: I381effc74130311f98794cd07d30be10dee4fe45 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> |
||
|---|---|---|
| .. | ||
| affine | ||
| basicdrawing | ||
| composition | ||
| concentriccircles | ||
| deform | ||
| fontsampler | ||
| gradients | ||
| imagecomposition | ||
| painterpaths | ||
| pathstroke | ||
| shared | ||
| transformations | ||
| README | ||
| painting.pro | ||
README
Qt's painting system is able to render vector graphics, images, and outline font-based text with sub-pixel accuracy accuracy using anti-aliasing to improve rendering quality. These examples show the most common techniques that are used when painting with Qt, from basic concepts such as drawing simple primitives to the use of transformations. Documentation for these examples can be found via the Examples link in the main Qt documentation.