FAQ

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.
If i is an int26_6, to convert it to float64:
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 left
of 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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 17 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 28, '15 at 6:53a
activeSep 2, '15 at 12:24a
posts17
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase