Word.FontBias enum

Указывает смещение шрифта, используемое при форматировании текста в Восточной Азии.

Комментарии

Набор API: WordApiDesktop 1.4

Используется

Примеры

// 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).");
});

Поля

farEast = "FarEast"

Использует смещение шрифта для текста на Дальнем Востоке.

noSpecified = "NoSpecified"

Смещение шрифта не указано.

standard = "Standard"

Использует смещение шрифта по умолчанию.