GetTextBoundsParams
*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.
Class.TextService:GetTextBoundsAsync() olarak bu instansı ölçmek için kullanın.
Kod Örnekleri
This example shows how you can use TextService:GetTextBoundsAsync().
It measures the size of some text in a specific font, then prints the result.
local TextService = game:GetService("TextService")
local params = Instance.new("GetTextBoundsParams")
params.Text = "hello world!"
params.Font = Font.new("rbxasset://fonts/families/GrenzeGotisch.json", Enum.FontWeight.Thin)
params.Size = 20
params.Width = 200
local size = TextService:GetTextBoundsAsync(params)
print("The size of the text is:", size)
Özet
Özellikler
Ölçülmeyen metnin Font kısmı.
Ölçülüyor text'in boyutu.
Ölçülüyor text.
Çizgi bozma için kutunun genişliği.
Özellikler
Font
Ölçülenecek Font textinin. TextLabel.FontFace özelliğine eşittir.
Datatype.Font.new() ile oluşturulabilen bir obje. Bu, Font.new() ile oluşturulabilen bir obje.
RichText
Width
Hatayı ayırmak için kullanılan kutunun genişliği.Varsayılan olarak, değer 0'dır, yani hiç satır kırılmaz. Genişliğini kutunun içine ayarlayabilirsiniz.