Monospace fonts (Courier) not correctly rendered?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Hans-Helmut
Posts: 57
Joined: Sat Jan 14, 2017 6:44 pm

Monospace fonts (Courier) not correctly rendered?

Post by Hans-Helmut » Wed Jan 18, 2017 2:10 pm

Windows 10, 64 bit, Desktop
LCS version 8.1.2

I am converting a tab delimited list into a fixed space delimited list using a monospaced font (Courier and Courier New), trying to left- and right align individual columns. The function works as expected.

So, I am calculating the max number of each column (item in the lines of a list) and then add spaces before or after each string to achieve an equal length to each string for each column filled up by spaces.

The problem: If I do not set the textSize of field "output" to 12 then the aligning does not work, and also all the other text sizes such as 8, 9, 10, 11 look very strange and are much too small.

I am using the default Windows theme. I did not change anything creating a new stack.

Monospaced font: Courier New

8: Looks well aligned, but is so small that it becomes almost not readable
9: Is readable but not correctly aligning
10: Is readable but not correctly aligning
11: Is readable but not correctly aligning
12: Is fine
13: Same as 12 (almost no difference)
14: Same as 12 (little difference, almost no noticeable change of the text size)
15: Some small visible change of text size compared to 12, but not aligning correctly again
16: Visually bigger than 12, but not correctly aligning

Screen resolution makes no difference in the way the font is rendered.

Is this a bug, or feature, or... ?

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Monospace fonts (Courier) not correctly rendered?

Post by MaxV » Wed Jan 18, 2017 6:21 pm

I suggest you to read here: http://livecodeitalia.blogspot.it/2016/ ... mente.html
(there is a translate button in the top right of the page)
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Hans-Helmut
Posts: 57
Joined: Sat Jan 14, 2017 6:44 pm

Re: Monospace fonts (Courier) not correctly rendered?

Post by Hans-Helmut » Wed Jan 18, 2017 10:28 pm

MaxV , thank. The Italian site is great for starters. ))) I am already studying this.

Well -- it is more a reply to another post I made regarding datagrid and other ways of managing table like data.

But the Courier font problem is not addressed. I assume it could be called a bug? I must register to submit bug reports maybe.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Monospace fonts (Courier) not correctly rendered?

Post by [-hh] » Thu Jan 19, 2017 3:00 am

Even "monospaced" fonts are not perfect for vertical alignment, that's not LiveCode specific.
It is a problem of the font only. Some fonts work a little bit better with non-breaking spaces.

For me working with the formattedWidth of chunks and using tabstops yields much better results.
shiftLock happens

Post Reply