Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Ingame.IMyTextSurface.MeasureStringInPixels

Malware edited this page Dec 13, 2025 · 6 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

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