I’ve just started testing this wonderful app for the first time in my life and I’m planning to rewrite my (at least for me) very useful plugin from the GlyphsApp: StemThickness (https://github.com/RafalBuchner/StemThickness).

For this purpose I need to find the nearest on-curve point for the coordinate of the cursor point. And I’ve found it:

(here: https://groups.google.com/forum/#!topic/robofab/YAG1RQO_mcc )

Right now I’m looking for something I would call “time of the on-curve point”. This is the ratio needed for further calculation for my extension.

Following equation is the standard equation for the bezier curve.

I have given B (coordinates of the nearest on-curve point), A, B, C, D (curve’s control points). I’m looking for “t” value:

B = (1 – t)^3*A + 3*(1 – t)^2 *t*B + 3*(1 – t) *t^2 *C + t^3 * D

, 0 <= t <= 1, t=?

Do you guys know any fast method for finding “t” value of given on-curve point and bezeir curve’s control points?

I hope that this message is quite clear :) I’m not the best at explaining math stuff at forums.

Cheers

Rafał

I think this has been asked before but I cannot find anything.

When generating an .otf and ticking autohint,

the output window or batch report will say

/bin/sh: autohintexe: command not found

for every glyph in the font.

Blue Values and StemSnap are set.

thanks, jo

]]>Thanks

]]>the agrave would be an example.

My a sidebearing L=51, R=69 and when composed agrave is L=51, R=60

It appears to be consistently subtracting different amounts of the right side bearing on component glyphs only, if that helps?

Is there is a way to output the process to a text file that could be inspected to see what’s happening? apologies for minimal knowledge in helping troubleshoot this.

Thanks.

]]>could you provide a real example?

it should take the metrics of the first component, in your example `agrave=a+grave@top`

the `agrave`

should have the same metrics as `a`

thanks

]]>However in some instances the side bearings of the base glyph (let’s say u) do not match the side bearings of uogonek.

Does anyone know how to create diacritics using components as mentioned above so that side bearings match base glyph?

]]>Thanks

]]>but you could use the naked object

g = CurrentGlyph() # remove the first segment from the first contour g[0].naked().removeSegment(0, preserveCurve=True)

good luck!

]]>On deleting a point on a contour via Python, I was wondering if there is any way to access/use RoboFont’s method to keep / approximate the existing curve in a script?

Thanks,

Nina