There's a problem with scaled bitmap fonts when using a 8.8 fixed point scaling factor: Where does the next character begin? Assume a text string staring at 100/100 with a scaling of $180 (= 1.5). If the width of the font is 9, the character would be scaled using 1.5, which gives a width of 9 * 1.5 = 13.5. Does the next character begin at 113.5, 113 or 114? What if we have a scale factor of $140 (= 1.25). In the example above, the width would be 9 * 1.25 = 11.25. Assuming we start the next char at the next full pixel, string width calculation becomes really complex, because it is not just width*length, but for each character, the width has to be added and rounding has to be done. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Jul 17 15:29:09 2011
This archive was generated by hypermail 2.1.8 : 2011-07-17 15:29:13 CEST