You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Close method is missing from the current implementation of text.GoTextFace.
Why is this needed?
I tried to use face.BoundString which is the recommended approach to get the bounds of a text to be rendered. But this isn't possible because of the missing implementation.
The text was updated successfully, but these errors were encountered:
On second thought, it might be possible to implement font.Face for text.GoTextFace in theory, but we should use Measure for widths and Metrics or AppendGlyphs for heights. IMO, we should use HAscent + HDescent for heights.
I looked at the implementation of BoundsString and this iterates each rune in one string. This could be different from how text/v2 renders texts with GoTextFace considering ligatures and various glyphs. So unfortunately it is not possible to implement font.Face for text.GoTextFace.
Operating System
What feature would you like to be added?
The
Close
method is missing from the current implementation oftext.GoTextFace
.Why is this needed?
I tried to use
face.BoundString
which is the recommended approach to get the bounds of a text to be rendered. But this isn't possible because of the missing implementation.The text was updated successfully, but these errors were encountered: