MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / parse

Method parse

packages/alphatab/src/model/Font.ts:62–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 public parse() {
63 this._reset();
64 // default font flags
65 if (this._tokens.length === 1) {
66 switch (this._currentToken?.text) {
67 case 'caption':
68 case 'icon':
69 case 'menu':
70 case 'message-box':
71 case 'small-caption':
72 case 'status-bar':
73 case 'inherit':
74 return;
75 }
76 }
77
78 if (!this.parseOnlyFamilies) {
79 this._fontStyleVariantWeight();
80 this._fontSizeLineHeight();
81 }
82 this._fontFamily();
83 }
84
85 public static parseFamilies(value: string): string[] {
86 const parser = new FontParser(value);

Callers 15

parseFamiliesMethod · 0.95
fromJsonMethod · 0.95
loadFileAsJsonMethod · 0.45
toDoubleOrNaNFunction · 0.45
toIntOrNaNFunction · 0.45
handleAcceptFunction · 0.45
defineVitestConfigFunction · 0.45
writeBundleFunction · 0.45
loadFileAsJsonMethod · 0.45

Calls 4

_resetMethod · 0.95
_fontSizeLineHeightMethod · 0.95
_fontFamilyMethod · 0.95

Tested by 1

loadFileAsJsonMethod · 0.36