We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调试发现,安卓下canvas.fillText绘制的文本line-height强制为1 IOS下强制为normal 不得不在使用的时候做适配 const createHiloFontSize = (fontSize) => `${fontSize}px/${isIOS() ? 'normal' : `${fontSize}px`}`; 建议优化Hilo.Text.measureFontHeight 方法来修复问题
const createHiloFontSize = (fontSize) => `${fontSize}px/${isIOS() ? 'normal' : `${fontSize}px`}`;
The text was updated successfully, but these errors were encountered:
字体大小怎么控制,setFont设置根本没用啊。。
Sorry, something went wrong.
No branches or pull requests
调试发现,安卓下canvas.fillText绘制的文本line-height强制为1
IOS下强制为normal
不得不在使用的时候做适配
const createHiloFontSize = (fontSize) => `${fontSize}px/${isIOS() ? 'normal' : `${fontSize}px`}`;
建议优化Hilo.Text.measureFontHeight 方法来修复问题
The text was updated successfully, but these errors were encountered: