Skip to content

Latest commit

 

History

History
535 lines (320 loc) · 9.97 KB

nf-tom-itextdocument2-getpreferredfont.md

File metadata and controls

535 lines (320 loc) · 9.97 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tom.ITextDocument2.GetPreferredFont
ITextDocument2::GetPreferredFont (tom.h)
Retrieves the preferred font for a particular character repertoire and character position.
GetPreferredFont
GetPreferredFont method [Windows Controls]
GetPreferredFont method [Windows Controls]
ITextDocument2 interface
ITextDocument2 interface [Windows Controls]
GetPreferredFont method
ITextDocument2.GetPreferredFont
ITextDocument2::GetPreferredFont
controls.itextdocument2_getpreferredfont
tom/ITextDocument2::GetPreferredFont
tomAboriginal
tomAnsi
tomArabic
tomArmenian
tomBIG5
tomBaltic
tomBengali
tomBraille
tomCherokee
tomCyrillic
tomDefaultCharRep
tomDevanagari
tomEastEurope
tomEmoji
tomEthiopic
tomGB2312
tomGeorgian
tomGetHeightOnly
tomGreek
tomGujarati
tomGurmukhi
tomHangul
tomHebrew
tomIgnoreCurrentFont
tomJamo
tomKannada
tomKayahli
tomKharoshthi
tomKhmer
tomLao
tomLimbu
tomMac
tomMalayalam
tomMatchAscii
tomMatchCharRep
tomMatchFontSignature
tomMatchMathFont
tomMongolian
tomMyanmar
tomNewTaiLu
tomOEM
tomOgham
tomOriya
tomPC437
tomRunic
tomShiftJIS
tomSinhala
tomSylotinagr
tomSymbol
tomSyriac
tomTaiLe
tomTamil
tomTelugu
tomThaana
tomThai
tomTibetan
tomTurkish
tomUsymbol
tomVietnamese
tomYi
controls\itextdocument2_getpreferredfont.htm
Controls
d07c3093-8050-4c62-8e90-3b09cdb10700
12/05/2018
GetPreferredFont, GetPreferredFont method [Windows Controls], GetPreferredFont method [Windows Controls],ITextDocument2 interface, ITextDocument2 interface [Windows Controls],GetPreferredFont method, ITextDocument2.GetPreferredFont, ITextDocument2::GetPreferredFont, controls.itextdocument2_getpreferredfont, tom/ITextDocument2::GetPreferredFont, tomAboriginal, tomAnsi, tomArabic, tomArmenian, tomBIG5, tomBaltic, tomBengali, tomBraille, tomCherokee, tomCyrillic, tomDefaultCharRep, tomDevanagari, tomEastEurope, tomEmoji, tomEthiopic, tomGB2312, tomGeorgian, tomGetHeightOnly, tomGreek, tomGujarati, tomGurmukhi, tomHangul, tomHebrew, tomIgnoreCurrentFont, tomJamo, tomKannada, tomKayahli, tomKharoshthi, tomKhmer, tomLao, tomLimbu, tomMac, tomMalayalam, tomMatchAscii, tomMatchCharRep, tomMatchFontSignature, tomMatchMathFont, tomMongolian, tomMyanmar, tomNewTaiLu, tomOEM, tomOgham, tomOriya, tomPC437, tomRunic, tomShiftJIS, tomSinhala, tomSylotinagr, tomSymbol, tomSyriac, tomTaiLe, tomTamil, tomTelugu, tomThaana, tomThai, tomTibetan, tomTurkish, tomUsymbol, tomVietnamese, tomYi
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextDocument2::GetPreferredFont
tom/ITextDocument2::GetPreferredFont
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextDocument2.GetPreferredFont

ITextDocument2::GetPreferredFont

-description

Retrieves the preferred font for a particular character repertoire and character position.

-parameters

-param cp [in]

Type: long

The character position for the preferred font.

-param CharRep [in]

Type: long

The character repertoire index for the preferred font. It can be one of the following values.

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

-param Options [in]

Type: long

The preferred font options. The low-order word can be a combination of the following values.

tomIgnoreCurrentFont

tomMatchCharRep

tomMatchFontSignature

tomMatchAscii

tomGetHeightOnly

tomMatchMathFont

If the high-order word of Options is tomUseTwips, the font heights are given in twips.

-param curCharRep [in]

Type: long

The index of the current character repertoire.

-param curFontSize [in]

Type: long

The current font size.

-param pbstr [out]

Type: BSTR*

The name of the font.

-param pPitchAndFamily [out]

Type: long*

The font pitch and family.

-param pNewFontSize [out]

Type: long*

The new font size.

-returns

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

-see-also

ITextDocument2