[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] How can I render monospace text in any font?

From: Himanshu Joshi
Subject: Re: [ft] How can I render monospace text in any font?
Date: Fri, 3 Oct 2014 22:27:08 +0530

you can use width of "M" character if its Latin font.

On Thu, Oct 2, 2014 at 2:13 AM, J Decker <address@hidden> wrote:
just use whatever fixed size you want between characters instead of that returned by the font?  It's certainly easier to go to monospace than to variable space from a mono font

On Wed, Oct 1, 2014 at 5:17 AM, John Owen <address@hidden> wrote:
Given any typical font, not necessarily a monospace one, how can I
render text in a monospace style? I've tried messing around with
drawing the bitmaps of the glyphs individually, but I can never get
the x and y alignment between glyphs right. I'm using OpenGL and
python, but the answer should be adaptable to any graphics context or
language. I've also opened a question on SO if anyone wanted to use

Apologies if I screw something up, I'm new to mailing lists.

Freetype mailing list

Freetype mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]