Skip to content

Commit 2014558

Browse files
committed
add uitoolkit custom font example
1 parent faa0968 commit 2014558

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

Assets/Resources/Underdog.ttf

74.1 KB
Binary file not shown.

Assets/Resources/Underdog.ttf.meta

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react/src/uitoolkit/home/index.module.scss

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
background-color: #fafafa;
33
}
44

5+
@font-face {
6+
font-family: Underdog;
7+
src: url(res:Underdog);
8+
}
9+
510
.app {
611
padding: 20px;
712
max-width: 960px;
@@ -14,6 +19,7 @@
1419
font-style: smallcaps, bold;
1520
color: #582a9c;
1621
margin-bottom: 12px;
22+
font-family: Underdog;
1723
}
1824

1925
h2 {

0 commit comments

Comments
 (0)