This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Sandbox.ModAPI.Ingame.IMyTextSurface.MeasureStringInPixels
Morten Aune Lyrstad edited this page Jun 28, 2020
·
5 revisions
← Index ← Namespace Index ← IMyTextSurface
public Vector2 MeasureStringInPixels(StringBuilder text, string font, float scale)
Calculates how many pixels a string of a given font and scale will take up.
- StringBuilder text
- string font
- float scale
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!