Word.FontBias enum
Gibt die Schriftartverzerrung an, die beim Formatieren von ostasiatischem Text verwendet werden soll.
Hinweise
[ API-Satz: WordApiDesktop 1.4 ]
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/55-selection/insert-symbol.yaml
// Inserts a Wingdings checkmark (ANSI character 252) at the selection.
// The font option selects the symbol font, unicode: false uses the ANSI code point,
// and bias: Word.FontBias.standard ensures the standard (non-East-Asian) glyph is used.
await Word.run(async (context) => {
const options: Word.SelectionInsertSymbolOptions = {
font: "Wingdings",
unicode: false,
bias: Word.FontBias.standard,
};
context.document.selection.insertSymbol(252, options);
await context.sync();
console.log("Inserted Wingdings checkmark (character 252).");
});
Felder
| farEast = "FarEast" | Verwendet die Schriftartverzerrung für Fernöstlichkeitstext. |
| noSpecified = "NoSpecified" | Es wurde keine Zeichenneigung angegeben. |
| standard = "Standard" | Verwendet die Standardschriftart bias. |