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... ?
Monospace fonts (Courier) not correctly rendered?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 57
- Joined: Sat Jan 14, 2017 6:44 pm
Re: Monospace fonts (Courier) not correctly rendered?
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)
(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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 57
- Joined: Sat Jan 14, 2017 6:44 pm
Re: Monospace fonts (Courier) not correctly rendered?
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.
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.
Re: Monospace fonts (Courier) not correctly rendered?
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.
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