flutter - 谷歌字体,而粗体不会在 Flutter 应用程序中为 NumberFormat 呈现空格
问题描述
我有一个问题,当加粗时,数千之间的空格不会用 Lato(和其他一些字体)呈现。
您可以看到每组三个零之间的空格,这是我想要的,但它们不会为其他行渲染。
我的字体配置是:
fonts:
- family: SourceSansPro
fonts:
- asset: fonts/SourceSansPro-Regular.ttf
- asset: fonts/SourceSansPro-Bold.ttf
weight: 700
- family: PublicSansBlack
fonts:
- asset: fonts/PublicSans-Black.ttf
- family: RobotoSlab
fonts:
- asset: fonts/RobotoSlab-Regular.ttf
weight: 400
- asset: fonts/RobotoSlab-Medium.ttf
weight: 500
- family: Lato
fonts:
- asset: fonts/Lato-Regular.ttf
- asset: fonts/Lato-Bold.ttf
weight: 700
奇怪的是,PublicSansBlock
当权重是FontWeight.normal
而不是其他时,它呈现正确。它与我只加载一个重量的字体源相同。这可能是一个错误TextStyle
吗?
该值是100 000 000
通过格式化的,new NumberFormat('###,###,###,###', 'fr')
但我怀疑它与此无关,因为我看到它适用于另一种字体且非粗体。
解决方案
推荐阅读
- python - 在 Python 中将图像分配给 pandas 数据框的元素
- html - 如何修复 Vue.js 和 Spring Boot 应用程序中的 CORS 错误
- python-3.x - 创建一个所有元素最初设置为“无”的二维数组
- javascript - 为每个 @foreach 创建自己的脚本函数
- css - HostBinding 未绑定到 CSS 变量
- asp.net-mvc - Azure AD B2C 登录/设置有问题
- android-studio - 在 Android Studio 运行配置中更改检测类
- msbuild - MSBuild 选择部分 RecursiveDir
- c - '{' 标记之前的预期 ':'、','、';'、'}' 或 '__attribute__'
- python - 在 jupyter notebook 中使用 matplotlib 的“下载绘图”功能时图像失真