Things not lining up. Cursor falls behind

I have a fixed width font. I adjusted the advance width to all the fonts to 700. The hypen I set to 2100. Exactly 3 times the length of the space and the letters. So it should take 3 spaces or letters to equal the length of one hyphen. Of course I resized the outlines to fit perfectly in between the 0 and the 700 and a height of 1000.

When I use the font in textpad or notepad. The cursor will run ahead or fall behind. example. I type a hypen, the cusor should now be at the end of the hypen but it is not, it is in the middle. Why?! I dont understand this at all.

Also, in html the characters are slightly off, when ther is a space in the line. I triple checked the advance width on all the characters. I use

Like this.


|A --------|G--------|
|C# --------|D--------|

the pipes are just slightly out of line with the one aboave it, unless both lines are exaclty the same. If one of the hypens is 3 spaces instead, then it throws it off by just a hair.

What is the problem?

Thanks

Since your hyphen is wider than the rest of the glyphs, it is a proportional font, not monospaced

If it was originally a fixed-pitch font, you need to change it to proportional. Kerning might be having some effect too.