Share via


ITextDocument2::GetPreferredFont メソッド (tom.h)

特定の文字のレパトアと文字の位置に適したフォントを取得します。

構文

HRESULT GetPreferredFont(
  [in]  long cp,
  [in]  long CharRep,
  [in]  long Options,
  [in]  long curCharRep,
  [in]  long curFontSize,
  [out] BSTR *pbstr,
  [out] long *pPitchAndFamily,
  [out] long *pNewFontSize
);

パラメーター

[in] cp

型: long

優先フォントの文字位置。

[in] CharRep

型: long

優先フォントの文字のレパトア インデックス。 次のいずれかの値を指定できます。

tomAboriginal

tomAnsi

tomArabic

tomArmenian

tomBaltic

tomBengali

tomBIG5

tomB点字

tomCherokee

tomCyrillic

tomDefaultCharRep

tomDevanagari

tomEastEurope

tomEmoji

tomEチオピック

tomGB2312

tomGeorgian

tomGreek

tomGujarati

tomGurmukhi

tomHangul

tomHebrew

tomJamo

tomKannada

tomKayahli

tomKharoshthi

tomKhmer

tomLao

tomLimbu

tomMac

tomMalayalam

tomMongolian

tomMyanmar

tomNewTaiLu

tomOEM

tomOgham

tomOriya

tomPC437

tomRunic

tomShiftJIS

tomSinhala

tomSylotinagr

tomSymbol

tomSyriac

tomTaiLe

tomTamil

tomTelugu

tomThaana

tomThai

tomTibetan

tomTurkish

tomUsymbol

tomVietnamese

tomYi

[in] Options

型: long

推奨されるフォント オプション。 下位ワードには、次の値の組み合わせを指定できます。

tomIgnoreCurrentFont

tomMatchCharRep

tomMatchFontSignature

tomMatchAscii

tomGetHeightOnly

tomMatchMathFont

オプションの上位ワードが tomUseTwips の場合、フォントの高さは twip 単位で指定されます。

[in] curCharRep

型: long

現在の文字のレパトアのインデックス。

[in] curFontSize

型: long

現在のフォント サイズ。

[out] pbstr

種類: BSTR*

フォントの名前。

[out] pPitchAndFamily

型: long*

フォントのピッチとファミリ。

[out] pNewFontSize

型: long*

新しいフォント サイズ。

戻り値

型: HRESULT

メソッドが成功すると、 NOERROR が返されます。 そうでない場合は、HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 8 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2012 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー tom.h
[DLL] Msftedit.dll

こちらもご覧ください

ITextDocument2