We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c6e45 commit ce90b58Copy full SHA for ce90b58
src/Graphics/src/Graphics/Text/TextAttributeExtensions.cs
@@ -23,14 +23,14 @@ public static float GetFontSize(
23
this ITextAttributes attributes,
24
float? fontSize = null)
25
{
26
- return attributes.GetFloatAttribute(TextAttribute.FontName, fontSize ?? DefaultFontSize);
+ return attributes.GetFloatAttribute(TextAttribute.FontSize, fontSize ?? DefaultFontSize);
27
}
28
29
public static void SetFontSize(
30
this Dictionary<TextAttribute, string> attributes,
31
float value)
32
33
- attributes.SetFloatAttribute(TextAttribute.FontName, value, DefaultFontSize);
+ attributes.SetFloatAttribute(TextAttribute.FontSize, value, DefaultFontSize);
34
35
36
public static bool GetUnderline(this ITextAttributes attributes)
0 commit comments