Glyph Left Origin - PLEASE HELP - URGENT

We use custom Glyphs for alpha fonts.
The origin of all glyphs is 0,0
We use the graphics 'DrawString" method to place individual characters at a calculated X/Y location. FOR SOME REASON ALL GLYPHS ARE TO THE RIGHT OF THE CORRECT LOCATION.
We deleted the kerning table since we do not use it. We used AutoMetrics to set the left edge of all glyphs to 0, but it keeps coming back as 40 - not sure if this is the problem.

HELP

Hello DaveKrohn

There are two parts to this (x=0 and y=0). I’ll assume the issue is x=0. You have to manually adjust each glyph to y=0 but that won’t be changed by any font adjustments.

To get left side of all glyphs aligned at 0, Autometrics is part of the solution for sure.

  1. But first, Tools/Options/Font : Check “Set left side bearing point at x=0”.

  2. Do Autonaming: Tools/Autometics Select all glyphs (>>).
    =Next.
    =Under Calculated, set “White Space before characters” to 0.
    =Set “White space after characters” to some spacing value depending upon your font.
    =Finish.

  3. Save As with new font name (makes a backup which is always good).

  4. Looking at a single glyph will show it being positioned at x=0. (I think that happens with a Save after the Autometrics).

You can also see File/Properties “X minimum for all glyph bounding boxes” = 0 and “MinLeftSideBearing” = 0

I think that does it.

Dick Pape

Afraid thats not the issue.
We tried all of the originally.
Everything is set to 0,0
No white space before.

Still unsure where the space before is coming from except possible from the GDI API.

IF you pick an x,y position and give GDI a line to draw, and then use the same X,Y position for a single letter (string), the letter is 15% (of its height) to the right of the line.

As Dick Pape explained to you, when you run Autometrics, the process automatically places 40 whitespaces on each side of the glyph. You have to select “Fixed” instead of “Calculated” to change this.

Or, after you paste characters into glyph edit windows, saving the font will move the glyphs to the 0,0 location.

As I stated earlier - that was understood and done originally.
They are all at 0,0 with NO white space before.

What am I missing?

Hello DaveKrohn

I liked my answer anyway – too bad that’s not your problem.

Do you believe all the values and parameters of your font under Format/ Settings have been correctly set, e.g, not some default value? I don’t know that much (any thing) about the Draw String Method or the GDI API to speak to which ones could have an impact.

I am aware that random numbers sometimes create random effects in handling fonts…

You might try setting the glyphs 15% of their height to the left of 0… (kidding)

DP

Appreciate your assistance and your answer was a good one.
I suspect the problem is in the GDI+ API and not the font itself.
It may also be in the way the glyph is returned to the GDI API - that is, it may put in a default spacing even if there is none in the glyph.

oh-well - thanks

Dave

Why not try Autometrics with -40?

We all may learn something.