Skip to content

Commit

Permalink
Merge pull request enisn#621 from trdsolutions/develop
Browse files Browse the repository at this point in the history
Added material symbol font conversions with filled parameter
  • Loading branch information
enisn authored Mar 17, 2024
2 parents 3a1101b + 6976a6b commit 77a99dd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
16 changes: 16 additions & 0 deletions src/UraniumUI.Icons.MaterialSymbols/FontAliases.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace UraniumUI;

public static class FontAliases
{
public const string MaterialOutlined = "MaterialOutlined";

public const string MaterialOutlinedFilled = "MaterialOutlinedFilled";

public const string MaterialRounded = "MaterialRounded";

public const string MaterialRoundedFilled = "MaterialRoundedFilled";

public const string MaterialSharp = "MaterialSharp";

public const string MaterialSharpFilled = "MaterialSharpFilled";
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ public static IFontCollection AddMaterialSymbolsFonts(this IFontCollection fonts
{
var thisAssembly = typeof(MaterialIconsConfigurationExtensions).Assembly;

fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsOutlined.ttf", "MaterialOutlined");
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsRounded.ttf", "MaterialRounded");
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsSharp.ttf", "MaterialSharp");
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsOutlined.ttf", FontAliases.MaterialOutlined);
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsOutlinedFilled.ttf", FontAliases.MaterialOutlinedFilled);
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsRounded.ttf", FontAliases.MaterialRounded);
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsRoundedFilled.ttf", FontAliases.MaterialRoundedFilled);
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsSharp.ttf", FontAliases.MaterialSharp);
fonts.AddEmbeddedResourceFont(thisAssembly, "MaterialSymbolsSharpFilled.ttf", FontAliases.MaterialSharpFilled);

return fonts;
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 77a99dd

Please sign in to comment.