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
zrender/src/core/platform.ts
Lines 75 to 79 in e5d275f
DEFAULT_FONT 为 12px sans-serif
12px sans-serif
运行时为 normal normal 12px sans-serif
normal normal 12px sans-serif
font = font || DEFAULT_FONT; const res = /^([0-9]*?)px$/.exec(font); const fontSize = +(res && res[1]) || DEFAULT_FONT_SIZE;
res 为 null, fontSize 只能为 DEFAULT_FONT_SIZE
The text was updated successfully, but these errors were encountered:
normal normal 12px sans-serif 是怎么来的?请提供一个调用时的代码
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
zrender/src/core/platform.ts
Lines 75 to 79 in e5d275f
DEFAULT_FONT 为
12px sans-serif
运行时为
normal normal 12px sans-serif
res 为 null, fontSize 只能为 DEFAULT_FONT_SIZE
The text was updated successfully, but these errors were encountered: