Skip to content

Commit

Permalink
Implement basic emoji support (#24039)
Browse files Browse the repository at this point in the history
* Implement basic font support

Add NotoEmoji font
Add emoji font to default font stacks

* Remove unneded change

* L

* Remove emoji font from default font stacks
  • Loading branch information
juliangiebel authored Jan 29, 2024
1 parent 6960794 commit 94b4342
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/Stylesheets/StyleNano.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static Font NotoStack(this IResourceCache resCache, string variation = "R
{
$"/Fonts/NotoSans{ds}/NotoSans{ds}-{variation}.ttf",
$"/Fonts/NotoSans/NotoSansSymbols-{sv}.ttf",
"/Fonts/NotoSans/NotoSansSymbols2-Regular.ttf",
"/Fonts/NotoSans/NotoSansSymbols2-Regular.ttf"
},
size
);
Expand Down
Binary file added Resources/Fonts/NotoEmoji.ttf
Binary file not shown.
4 changes: 4 additions & 0 deletions Resources/Prototypes/fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@
- type: font
id: Monospace
path: /EngineFonts/NotoSans/NotoSansMono-Regular.ttf

- type: font
id: Emoji
path: /Fonts/NotoEmoji.ttf

0 comments on commit 94b4342

Please sign in to comment.