Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyTextSurface.MeasureStringInPixels

Morten Aune Lyrstad edited this page Feb 3, 2022 · 5 revisions

IndexNamespace IndexIMyTextSurface

Summary

public Vector2 MeasureStringInPixels(StringBuilder text, string font, float scale)

Calculates how many pixels a string of a given font and scale will take up.

Returns

Vector2

Width and Height of text with specified text, font and scale

Parameters

Clone this wiki locally