问题描述
使用称为“iransans”(高字体)的波斯字体系列,所有元素看起来都比标准字体大小的平常大。
我在styles.scss中使用custom typography来减少字体大小 2px,从而保持行高和粗细原封不动:
@import "~@angular/material/theming";
$custom-typography: mat-typography-config(
$font-family: "iransans",$title: mat-typography-level(18px,20px,500),// default font-size was 20px as I inspected
$button: mat-typography-level(12px,24px,// default font-size was 14px as I inspected
// other levels
);
@include mat-core($custom-typography);
问题是我需要找到所有 13 levels of typographies 的默认字体大小、行高和粗细,并将它们的字体大小减少 2px,如上。
首先,我是否遵循正确的方法来减小字体大小?
如果是,我如何获得所有排版级别的默认值,减小字体大小并将它们设置为我的自定义排版?
如果没有,在不处理默认值的情况下实现这一目标的正确速记是什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)