Skip to content

Commit

Permalink
Merge pull request #3 from hczs/0.2.0
Browse files Browse the repository at this point in the history
💄 更换字体为 HarmonyOS Sans 字体
  • Loading branch information
hczs authored Oct 29, 2023
2 parents a558240 + 17b41ea commit 714acbe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/rightContent/message/MessagePoll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ const MessagePoll = (props: Props) => {
<ReactJson
src={messageInfo}
theme={"monokai"}
style={{fontFamily: "'LXGWWenKaiMono-Bold', sans-serif"}}></ReactJson>
style={{fontFamily: "'HarmonyOS_Sans_SC_Regular', sans-serif"}}></ReactJson>
: <div className={"txt-view"}>
{messageInfo}
</div>
Expand Down
Binary file added src/fonts/HarmonyOS_Sans_SC_Regular.ttf
Binary file not shown.
Binary file removed src/fonts/LXGWWenKaiMono-Bold.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// 全局字体设置
body,
html {
font-family: 'LXGWWenKaiMono-Bold', sans-serif;
font-family: 'HarmonyOS_Sans_SC_Regular', sans-serif;
font-size: 0.99em;
// 拖拽大小修改可能会出现滚动条,超出部分hidden处理
overflow: hidden;
}

@font-face {
font-family: 'LXGWWenKaiMono-Bold';
font-family: 'HarmonyOS_Sans_SC_Regular';
font-weight: 900;
src: local('LXGWWenKaiMono-Bold'), url(./fonts/LXGWWenKaiMono-Bold.ttf) format('truetype');
src: local('HarmonyOS_Sans_SC_Regular'), url(./fonts/HarmonyOS_Sans_SC_Regular.ttf) format('truetype');
}

.wrap-container {
Expand Down

0 comments on commit 714acbe

Please sign in to comment.