Making it happen
Text scaling
Recently I had to deal with the famous problem of non-uniform text scaling (the issue is that doubling the height does not mean necessarily a double width). Of course this is only for TrueType fonts.
A way of solving it is to draw char-by-char and occasionally skip pixels so that the final width of the text rendered equals the initially computed (zoom 1.0 width multiplied by zoom) correct width. Still it may look weird in some cases (the i’s may stick together in some fonts) – so there’s still some research to be done for a correct way to do it (like MS Word).
| Print article | This entry was posted by andrei on May 25, 2006 at 1:40 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 5 years ago
Maybe use float computations?
about 5 years ago
Sorry ? Where use them ?