mapbox / tiny-sdf

Browser-side SDF font generator
http://mapbox.github.io/tiny-sdf/
BSD 2-Clause "Simplified" License
575 stars 58 forks source link

Update glyphAdvance type to number #47

Closed jtbandes closed 2 years ago

jtbandes commented 2 years ago

In the code, this value seems to come from measureText().width, which is a number.

jtbandes commented 2 years ago

cc @mourner could you take a look at this?

HarelM commented 2 years ago

I might have used a tool to generate this and didn't look too deeply what was the outcome, sorry...

HarelM commented 2 years ago

Oh, the return value for measuteText returns any so I took that for reference...