You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each character in a BMF font has the following attributes controlling how it is drawn:
relX: how much the glyph image is shifted to the right, in pixels, relative to the current draw position
relY: how much the glyph image is shifted down, in pixels, relative to the baseline
shift: how much the draw position is shifted to the right after drawing, to prepare for the next character.
In addition, there are these properties implied by the glyph image itself:
image width (in pixels)
image height (in pixels)
We need some UI to let the user see and adjust these for each glyph. I'm thinking something like a yellow cross which indicates the draw position and baseline; and the right limb of this cross could extend to the right, ending in an arrow, to show the shift. These would be in addition to the current white box which shows the image bounds.
Replace the current "Image Shift" tool (top row, third tool from the left) with a "Metrics" tool (don't worry about the icon; I'll provide something once the functionality is settled down). When that tool is selected, clicking and dragging in the editing area should have the following effects:
Near the draw position/baseline cross: adjust relX and relY as mouse is dragged horizontally and vertically.
Near the arrow head: adjust shift (horizontally only).
Near the left side of the image box: adjust image width and relX (so that right side of the image, and the draw position cross, stay put).
Near the right side of the image box: adjust image width (keeping left side of image and draw position still).
Near the top side of the image box: adjust image height and relY (keeping bottom side of image and draw position still).
Near the bottom side of the image box: adjust image height (keeping top side of image and draw position still).
These changes should be written directly to the character position in the font data, so that if you switch to another glyph, then switch back, everything is as you left it.
The text was updated successfully, but these errors were encountered:
Each character in a BMF font has the following attributes controlling how it is drawn:
In addition, there are these properties implied by the glyph image itself:
We need some UI to let the user see and adjust these for each glyph. I'm thinking something like a yellow cross which indicates the draw position and baseline; and the right limb of this cross could extend to the right, ending in an arrow, to show the shift. These would be in addition to the current white box which shows the image bounds.
Replace the current "Image Shift" tool (top row, third tool from the left) with a "Metrics" tool (don't worry about the icon; I'll provide something once the functionality is settled down). When that tool is selected, clicking and dragging in the editing area should have the following effects:
These changes should be written directly to the character position in the font data, so that if you switch to another glyph, then switch back, everything is as you left it.
The text was updated successfully, but these errors were encountered: