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

tomBraille

tomCherokee

tomCyrillic

tomDefaultCharRep

tomDevanagari

tomEastEurope

tomEmoji

tomEthiopic

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이면 글꼴 높이가 트윅 단위로 지정됩니다.

[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