Some of you know that I design computer fonts, as a hobby. I'm working on a new font that requires extreme precision, as it has a lot of parallel lines and lines that continue, with a gap in between. It's nearly impossible to judge those sort of things by eye.
I'm developing a new procedure which is very slow when done manually, but it could be automated, and incorporated into a font editor at some point in the future, (but not by me!).
What I do is create a test font with the current version of the letter, (glyph), I'm working on, install that font, display it in MS Word at a very large point size, (I use 288* points, with source graphics about 244% larger than standard - I can adjust them proportionately in about two minutes, when I've finished editing), then I copy the text into MS Paint.
* to create text at this size in Word, I have to select the paper size to maximum, (22 x 22 inches).
When the text is pasted into Paint, the size will be reduced to 75%, so the bitmap I create will be 216 points size, (288 x .75). At this size, the text will be monochromatic, (black and white), as opposed to black, white, grey, beige, off white, etc, if the text was smaller.
In the bitmap image in Paint, I can enlarge the image to eight times actual size, and enable grid lines. This lets me draw where my lines should be. I assume that most straight, diagonal lines should have slopes that can be expressed as a fractional number, with a small denominator, like 1/1, 2/1, 3/1, 7/4, 10/3, 16/5, etc. I can draw a line in the bitmap that exactly follows the slope I wish to create in the vector.
The bitmap image I'm editing is at exactly 1/4 scale, meaning that if I enlarge the vector in my font editor to maximum size, four movements of a vector node, (the points that define the shape of the glyph), will move a pixel exactly one square in the bitmap. Effectively, I can make changes equivalent to about one millimeter, if the image was 14 feet tall.
I can compare the predicted path of the line I draw to the actual line, (the black part of the bitmap). This tells me where to make changes to the vector image in my font editor. It gives me an idea of how far I need to move the node(s), and in which direction(s).
After making some changes, I save the test font, and repeat. When I can make no further improvements to the bitmap, the vector image in my font editor will be as close to perfect as is possible - some errors can't be corrected, because the natural line from one fixed point to a fixed plane can fall in between two editing coordinates, as happens four times in the V, (below), where each of the lines with a small red square next to them are either one pixel too long, or one pixel to short, (one pixel is 1/96 of an inch square).
Here are the four letters I've completely edited, so far, with the editing lines shown in light blue and red. I didn't draw any of the black; it's the current state of the vector, displayed as a bitmap. These images are best appreciated if enlarged to 800% size, with grid lines enabled:
Note: these images have been resized to fit the forum window. You can see them at actual size here:
http://img14.imageshack.us/img14/277/j2kk.png
http://img547.imageshack.us/img547/9212/ala4.png
http://img51.imageshack.us/img51/6500/d512.png
http://img197.imageshack.us/img197/1117/a1ra.png
(The straight horizontal and vertical lines indicate a plane to which multiple nodes are aligned).
~bito
I'm developing a new procedure which is very slow when done manually, but it could be automated, and incorporated into a font editor at some point in the future, (but not by me!).
What I do is create a test font with the current version of the letter, (glyph), I'm working on, install that font, display it in MS Word at a very large point size, (I use 288* points, with source graphics about 244% larger than standard - I can adjust them proportionately in about two minutes, when I've finished editing), then I copy the text into MS Paint.
* to create text at this size in Word, I have to select the paper size to maximum, (22 x 22 inches).
When the text is pasted into Paint, the size will be reduced to 75%, so the bitmap I create will be 216 points size, (288 x .75). At this size, the text will be monochromatic, (black and white), as opposed to black, white, grey, beige, off white, etc, if the text was smaller.
In the bitmap image in Paint, I can enlarge the image to eight times actual size, and enable grid lines. This lets me draw where my lines should be. I assume that most straight, diagonal lines should have slopes that can be expressed as a fractional number, with a small denominator, like 1/1, 2/1, 3/1, 7/4, 10/3, 16/5, etc. I can draw a line in the bitmap that exactly follows the slope I wish to create in the vector.
The bitmap image I'm editing is at exactly 1/4 scale, meaning that if I enlarge the vector in my font editor to maximum size, four movements of a vector node, (the points that define the shape of the glyph), will move a pixel exactly one square in the bitmap. Effectively, I can make changes equivalent to about one millimeter, if the image was 14 feet tall.
I can compare the predicted path of the line I draw to the actual line, (the black part of the bitmap). This tells me where to make changes to the vector image in my font editor. It gives me an idea of how far I need to move the node(s), and in which direction(s).
After making some changes, I save the test font, and repeat. When I can make no further improvements to the bitmap, the vector image in my font editor will be as close to perfect as is possible - some errors can't be corrected, because the natural line from one fixed point to a fixed plane can fall in between two editing coordinates, as happens four times in the V, (below), where each of the lines with a small red square next to them are either one pixel too long, or one pixel to short, (one pixel is 1/96 of an inch square).
Here are the four letters I've completely edited, so far, with the editing lines shown in light blue and red. I didn't draw any of the black; it's the current state of the vector, displayed as a bitmap. These images are best appreciated if enlarged to 800% size, with grid lines enabled:
Note: these images have been resized to fit the forum window. You can see them at actual size here:
http://img14.imageshack.us/img14/277/j2kk.png
http://img547.imageshack.us/img547/9212/ala4.png
http://img51.imageshack.us/img51/6500/d512.png
http://img197.imageshack.us/img197/1117/a1ra.png
(The straight horizontal and vertical lines indicate a plane to which multiple nodes are aligned).
~bito