trime
trime copied to clipboard
在设置界面增加键盘/候选字体微调选项
trafficstars
Is your feature request related to a problem? Please describe. 对部分视力较差的人而言,键盘上的文字有可能过小,用户有微调字体的客观需求 但是目前字体大小完全由主题文件定义,且在主题中甚至可以定义每个label的字体大小,如需调整字体可能面临非常大的困难。
Describe the solution you'd like A clear and concise description of what you want to happen.
- 在设置界面增加字体大小微调选项: finetune_label_font_size finetune_canditate_font_size 控制字体微调到多大
- 加载键盘时,遍历每个按键的字体大小,并存储label、symbol、hint字体的最大值到对应键盘,记font_size_offset= finetune_label_font_size- label_font_size_max
- 当finetune font size<1时, 参数不生效
- 当finetune font size>=1是,每个按键的label、symbol、hint字体大小分别为font_size_offset+原设置的字体大小
- finetune_canditate_font_size<1,参数不生效
- finetune_canditate_font_size>=1,根据候选栏字体大小和设置参数进行微调。
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. 依上述方案,可以实现键盘字体的快速调大、调小,但是不能处理label、symbol、hint放大之后的重叠和溢出问题
Additional context Add any other context or screenshots about the feature request here.