Curl Global Community

Full Version: 文字の高さについて
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ある文字列(String)を画面に描画したときに、その文字の高さを取得したいです。

文字列の幅は DisplayContext.get-string-advance-width で取得できるので、
同じように取れるのかと思いましたが、それにあたりそうなものが見当たりません。

get-font-ascent、get-font-descent、get-font-underline-position を足し合わせるしかないのでしょうか。