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

Method quoteFont

packages/alphatab/src/model/Font.ts:284–291  ·  view source on GitHub ↗
(f: string)

Source from the content-addressed store, hash-verified

282 }
283
284 public static quoteFont(f: string): string {
285 if (f.indexOf(' ') === -1) {
286 return f;
287 }
288
289 const escapedQuotes = f.replaceAll('"', '\\"');
290 return `"${escapedQuotes}"`;
291 }
292}
293
294/**

Callers 1

toCssStringMethod · 0.80

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected