Hello,
I am adding a set of box-drawing characters($2500-$257F) to an existing mono-spaced font.
I have set the Advance Width to 500(as was set in the existing font). However, strange thing happens when I change the font size in the test window.
For example,
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│a│b│c│d│e│f│g│h│i│j│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
The vertical lines in the middle line(with alphabets) don’t align correctly with up and down lines only when the font size is set to 11, 13, 14, 16, 17, 19, 20, 32, and so on. The misplacement is amplified as the middle line goes on(with alternation of box-drawing characters and other characters).
In other cases, like 9, 10, 12, 15, 18, and 21, the vertical alignment looks correct.
What would be the cause of the problem? How could I rectify it?
Thanks in advance,
June
If you can attach your font I can take a look at it for you (or someone else might pass by before me). There’s an upload attachment tab below the reply box. TTF files are allowed. Unless the font is big, there is no need to zip it.
I attach two screen captures showing 13 pt(incorrectly aligned) and 15 pt(correctly aligned) font display.
Size13.PNG
Size15.PNG
In addition to that, I link the font file. http://drop.io/misaligned (couldn’t attach it here due to the size limit)
p.s. Interestingly, when I changed to Format>Settings>Layout>Units per em from 1000 to 1024, the misalignment was gone. Why? Could anyone explain this for me?
Thanks for your help.
Looks fine on my Vista PC.
test13.gif
I see a set of box draw characters already in the font from Glyph Index 519-586, but none of them are mapped, so cannot be used.
The new glphs you have added at the end from Glyph Index 20023 onwards are 500 funits wide, or half the width of the other glyphs.
I presume that this is by design. If I use 2 of these half-width characters for each full-width alpha character, there doesn’t seem to be any alignment problem whatever the font size in the test window.
They are full-width box drawing characters. What I needed was half-width box drawing characters. Hence, I added the half-width box drawing characters at the end and mapped them.
Yes, it is intended as written above.
The thing is I want to use the half-width box drawing characters mostly with normal ascii code alphabets(half-width). I might sometimes use Korean characters(they are two half-width characters wide) out of the boxes.
As Erwin and I have both said, there doesn’t seem to be any problem. I can use the half-width line draw characters with the half width alphabets at any size and they remain aligned. If we cannot reproduce the problem, then how can we help?
11 Point.png
19 Point.png