Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

Commit c69cc48

Browse files
committed
字体换成思源黑体-normal
1 parent ad3e432 commit c69cc48

File tree

5 files changed

+70
-77
lines changed

5 files changed

+70
-77
lines changed

.idea/workspace.xml

Lines changed: 64 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@
3636

3737
### 已知 Bug
3838

39+
- [x] 字体很丑
40+
- 使用内置思源黑体-normal。
41+
- 主要原因是 javafx 的字体渲染太渣,只能等它的更新了。。
3942
- [ ] 嵌入模式下, 跟打状态更新异常.(多多输入法在非嵌入模式下也会嵌入一个空格, 所以也是同一个bug)
4043
- 需要找到一个检测字符是否已经上屏的方法, 只在已经上屏时, 才调用 updateText() 方法.
4144
- [ ] 只有从跟打框的尾部输入时, 跟打状态、错字统计才能正常更新.
4245
- 检测到光标不在末尾时, 每次刷新整个跟打状态区的状态.(正在完成中)
4346
- [ ] 窗口组件的高度不能自适应.(宽度是自适应的)
4447
- 没想好怎么弄, 叫人来写css?
45-
- [ ] deepin 下字体很丑
46-
- 待续
4748
- [ ] 空格不能变色?这样跟打到空格会很困惑这个空格到底是打了还是没打
4849
- javafx 的 Text 对象好像没有 background 类,不知道该怎么弄。
4950

src/main/resources/css/root.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@font-face {
2-
src: url("/font/SourceHanSerifSC-Regular.otf");
2+
src: url("/font/SourceHanSansSC-Normal.otf");
33
}
44

55
/*1. 全局配置*/
66
.root {
77
-fx-font-size: 14;
8-
-fx-font-family: "Source Han Serif SC";
8+
-fx-font-family: "Source Han Sans SC Normal";
99
/*-fx-background: ;*/
1010
-fx-text-alignment: center;
1111
}
22.5 MB
Binary file not shown.

src/test/resources/跟打文章

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Do the Wall Street shuffle, hear the money rustle, watch the greenbacks tumble,
1515

1616

1717
小鹤双拼练习群附加赛文第103期-所打即所想制作
18-
那时候我的弟弟就会得到表现自己的机会,他手捂胸口用兴奋的神态,
18+
那时候我的弟弟就会得just love到表现you自己的机会,他手捂胸口用兴奋的神态,
1919
-----第999段-1200S-357Z-3L-98aacbd4V--c.sw.1.1
2020
本文由 《在细雨中呼喊》 组成
2121

0 commit comments

Comments
 (0)