On Fri, Aug 28, 2015 at 6:03 PM, Laurent Le Goff wrote:

Do you have a bidirectionnal conversion function/code from fixed.Int26_6 to

float64 ? I think I will need it, we use float64 type to represent a point.

Do you have a bidirectionnal conversion function/code from fixed.Int26_6 to

float64 ? I think I will need it, we use float64 type to represent a point.

f := float64(i) / 64

If f is a float64, to convert it to Int26_6:

i := fixed.Int26_6(f * 64)

you may want to adjust for rounding up / down / to nearest, the same

as for converting a float64 to an int.

Can you explain briefly what do you mean by a 'dot' please?

The dot is the small filled circle on the Baseline, just to the leftof the 'j', in the image at

https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Art/glyph_metrics_2x.png

The black / gray circles are the before / after locations of the dot

when drawing the 'j' glyph. The difference between the two is the

advance width, also known as the advancement.

--

You received this message because you are subscribed to the Google Groups "golang-nuts" group.

To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.