WideStudio/MWT Class Reference

WideStudio/MWT Home
Up to


クラスの型

WSDfont

メソッド関数仕様



getFontName 関数の説明

書式
char* getFontName()
機能
フォント名称とフォント情報を組み合わせた文字列を取得する関数です。
処理
引数
なし。
返値
フォント情報を含むフォント名称
注意
サンプル
  //フォント名称を取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  char* fname = font->getFontName();



getFontHeight 関数の説明

書式
long getFontHeight()
機能
フォントの高さを取得する関数です。
処理
引数
なし。
返値
フォントの高さ
注意
サンプル
  //フォントの高さを取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  long fheight = font->getFontHeight();



getStringWidth 関数の説明

書式
long getStringWidth(WSCstring* str)
機能
引数に指定された文字列の幅を取得する関数です。
処理
引数
(out)WSCstring* str 文字列

返値
文字列の幅
注意
サンプル
  //文字列の横幅を取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  WSCstring str;
  str = "abcde";
  long swidth = font->getStringWidth(&str);



getStringHeight 関数の説明

書式
long getStringHeight(WSCstring* str)
機能
引数に指定された文字列の高さを取得する関数です。
処理
引数
(out)WSCstring* str 文字列

返値
文字列の高さ
注意
サンプル
  //文字列の縦幅を取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  WSCstring str;
  str = "abcde";
  long sheight = font->getStringHeight(&str);



getStringWidthUCS2 関数の説明

書式
long getStringWidthUCS2(WSCushort* str)
機能
指定されたUCS 文字列の幅を取得する関数です。
処理
引数
(out)WSCushort* str UCS2文字列

返値
文字列の幅
注意
サンプル
  //UCS2文字列の横幅を取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  WSCushort* str = WSGFgetUCS2("abcde",WS_EN_DEFAULT);
  long swidth = font->getStringWidthUCS2(str);
  delete str;



getStringHeightUCS2 関数の説明

書式
long getStringHeightUCS2(WSCushort* str)
機能
指定されたUCS2 文字列の高さを取得する関数です。
処理
引数
(out)WSCushort* str UCS2文字列

返値
文字列の高さ
注意
サンプル
  //UCS2文字列の縦幅を取得します。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  WSCushort* str = WSGFgetUCS2("abcde",WS_EN_DEFAULT);
  long sheight = font->getStringHeightUCS2(str);
  delete str;



getReady 関数の説明

書式
WSCbool getReady(WSCbool loading)
機能
フォントの使用可能状態を取得します。
処理
loading に True を指定すると、フォントが未ロードの場合、 フォントの読み込みを試みます。
引数
(in)WSCbool loading 未初期化の場合、False = 初期化を行なわない / True = 初期化を行なう

返値
フォントの使用可能状態。True = フォントがロードされ使用可能、False = フォントがロードされていない。
注意
サンプル
  //フォントの使用状態を取得する。
  WSDfont* font = WSGIappFontSet()->getDefaultFont();
  WSCbool status = font->getReady(False);


Document Release 3.90

For Use with WideStudio/MWT Release 3.90, Summer 2005


WideStudio/MWT Home | Up to

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: June 25, 2005