跳轉到主要內容
這個方法可讓您為字元設定新的字型。由於字型名稱與其型別彼此相依,因此會一併指定。這個方法會影響 ICharParams::FontNameICharParams::FontType 屬性。

語法

C++

HRESULT SetFont(
  BSTR         FontName,
  FontTypeEnum FontType
);

C#

void SetFont(
  string       FontName,
  FontTypeEnum FontType
);

Visual Basic .NET

Sub SetFont( _
  FontName As String, _
  FontType As FontTypeEnum _
)

參數

FontName [in] 此變數指定新字型的名稱。 FontType [in] 此變數指定新字型的型別。可將其設為 FontTypeEnum 列舉中的其中一個常數。

回傳值

此方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

另請參見

CharParams FontTypeEnum