Fixed sized text to canvas lazarus / 39-Graphics ---------------------------------------------------------------------- JasonLugg · 2017-05-07 20:15 Hi All As usual, thanks in advance! I wish to output certain ascii characters to a canvas but need each one to be 64 pixels x 64 pixels using a user chosen font. So user chooses font Arial, I then want to draw an 'A' using font arial but the 'A' must be 64 pixels by 64 pixels. any help much appreciated! ---------------------------------------------------------------------- balazsszekely · 2017-05-07 20:37 Hi JasonLugg, Use the TextWidth and TextHeight functions of the canvas. Increase the font size in a loop until the width or the height is equal or bigger then 64. ---------------------------------------------------------------------- Handoko · 2017-05-08 04:05 64 pixels x 64 pixels? Did you mean you want to stretch the the letter to a perfect square size of 64 x 64? Proportional fonts usually won't looks good if you make all the characters same width, especially for the characters: i, I, l. Arial is a proportional font, so it won't looks good if you do so. You may consider to use monospace (non-proportional) fonts: https://en.wikipedia.org/wiki/Monospaced_font Old era games (DOS) usually use monospaced fonts.