Skip to content

Commit ce90b58

Browse files
authored
Graphics TextAttribute size & name mixup (#20861)
1 parent b0c6e45 commit ce90b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Graphics/src/Graphics/Text/TextAttributeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ public static float GetFontSize(
2323
this ITextAttributes attributes,
2424
float? fontSize = null)
2525
{
26-
return attributes.GetFloatAttribute(TextAttribute.FontName, fontSize ?? DefaultFontSize);
26+
return attributes.GetFloatAttribute(TextAttribute.FontSize, fontSize ?? DefaultFontSize);
2727
}
2828

2929
public static void SetFontSize(
3030
this Dictionary<TextAttribute, string> attributes,
3131
float value)
3232
{
33-
attributes.SetFloatAttribute(TextAttribute.FontName, value, DefaultFontSize);
33+
attributes.SetFloatAttribute(TextAttribute.FontSize, value, DefaultFontSize);
3434
}
3535

3636
public static bool GetUnderline(this ITextAttributes attributes)

0 commit comments

Comments
 (0)