前のページ次のページ上に戻るホーム SophiaFramework 2.1
SFBFont
IFont インターフェイスのラッパークラスです。
#include <SFBFont.hpp>
class SFBFont : public SFBQuery;
typedef SFBFont&          SFBFontRef;
typedef SFBFont*          SFBFontPtr;
typedef SFBFont**         SFBFontHandle;
typedef const SFBFont     ConstSFBFont;
typedef const SFBFont&    ConstSFBFontRef;
typedef const SFBFont*    ConstSFBFontPtr;
typedef const SFBFont**   ConstSFBFontHandle;

継承図

SFBFont クラスの継承図

参照

BREW API IFont

バグ情報

IFONT_GetInfo
ドキュメント エラー BREW API リファレンス 2.0.1.5

API リファレンスには IFONT_GetFontInfo という API について説明がありますが、 正しい API 名は IFONT_GetInfo です。

補記:API リファレンス 2.1 (英語版) にて修正されました。日本語版は未修正です。

IFONT_MesureText
ドキュメント エラー BREW API リファレンス 2.0.1.5

この関数の第 6 引数に「-1」を渡すと特別な動作をする旨記述がありますが、 これは誤りです。第 6 引数には必ず有効な数字を渡してください。

メンバ

パブリック関数
public
AddRef (SFBBase から継承) インターフェイスの参照カウントをインクリメントします。
public
DrawText ビットマップ内にテキストを描画します。
public
GetInfo フォントの情報を取得します。
public
MeasureText テキストの幅を測定します。
public
QueryInterface (SFBQuery から継承) このオブジェクトからの別の API を問い合わせます。
public
Release (SFBBase から継承) インターフェイスの参照カウントをデクリメントします。
public
Self (SFBQuery から継承) オブジェクトを単一インタフェースで実装する際に使用します。

SFBFont::DrawText
ビットマップ内にテキストを描画します。
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
    SIntN x                                
    SIntN y                                
    ConstWCharPtr pcText                   
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    ConstSFURectPtr                        
    UInt32 prcClip = IDF_ALIGN_NONE        
);
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
    SIntN x                                
    SIntN y                                
    ConstWCharPtr pcText                   
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    ConstSFURectRef rcClip                 
    UInt32 flags = IDF_ALIGN_NONE          
);
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap    
    ConstSFUPointPtr point                 
    ConstSFUWideStringRef strText          
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    ConstSFURectPtr strClip                
    UInt32 dwFlags = IDF_ALIGN_NONE        
);
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
    ConstSFUPointRef point                 
    ConstSFUWideStringRef strText          
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    ConstSFURectRef rcClip                 
    UInt32 flags = IDF_ALIGN_NONE          
);
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
    ConstSFUPointRef point                 
    ConstSFUWideStringRef strText          
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    UInt32 flags = IDF_ALIGN_NONE          
);
[ public ]
SFCError DrawText(
    const SFUBrewPtr<SFBBitmap>& pBitmap   
    ConstSFUWideStringRef strText          
    SIntN nChars                           
    NativeColor foreground                 
    NativeColor background                 
    ConstSFURectRef rcClip                 
    UInt32 flags = IDF_ALIGN_NONE          
);

参照

BREW API IFONT_DrawText | NativeColor | SFBBitmap::RGBToNative | SFBFont::MeasureText


SFBFont::GetInfo
フォントの情報を取得します。
[ public ]
SFCError GetInfo(
    AEEFontInfo * pInfo                 
    SIntN nSize = sizeof(AEEFontInfo)   
);
[ public ]
AEEFontInfo GetInfo(Void);

参照

BREW API IFONT_GetFontInfo | AEEFontInfo | SFBFont::MeasureText


SFBFont::MeasureText
テキストの幅を測定します。
[ public ]
SFCError MeasureText(
    ConstWCharPtr pcText   
    SIntN nChars           
    SIntN nMaxWidth        
    SIntNPtr pnFits        
    SIntNPtr pnPixels      
);
[ public ]
SFCError MeasureText(
    ConstSFUWideStringRef strText   
    SIntN nChars                    
    SIntN nMaxWidth                 
    SIntNPtr pnFits                 
    SIntNPtr pnPixels               
);

参照

BREW API IFONT_MeasureText | SFBFont::GetInfo