Skip to content

Commit cbc6c6e

Browse files
authored
Merge pull request #1990 from VisActor/fix/fix-bug-of-font-family
fix: fix issue of font family
2 parents 6d12aa1 + e9d0c62 commit cbc6c6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vrender-core/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export const VGlobal = Symbol.for('VGlobal');
33

44
export const DEFAULT_TEXT_FONT_FAMILY =
55
// eslint-disable-next-line max-len
6-
'PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol';
6+
`PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,'-apple-system',segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol`;

packages/vrender-core/src/graphic/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const DefaultTextStyle: Required<ITextAttribute> = {
9595
textBaseline: 'alphabetic',
9696
fontSize: 16,
9797
// @ts-ignore
98-
fontFamily: `PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,
98+
fontFamily: `PingFang SC,Microsoft Yahei,system-ui,'-apple-system',segoe ui,
9999
Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol`,
100100
fontWeight: '',
101101
ellipsis: '…',

0 commit comments

Comments
 (0)