… 前回の続き …
下記ページによれば、「フォントの高さ(大きさ)は、float型(つまり数値、浮動小数点型)で指定する(単位はポイント)」と書いてある。
指定は簡単そうだ。
http://api.openoffice.org/docs/common/ref/com/sun/star/style/CharacterProperties.html#CharHeight
指定は簡単そうだ。
http://api.openoffice.org/docs/common/ref/com/sun/star/style/CharacterProperties.html#CharHeight
oSheet.getCellByPosition(0,1).CharHeight=24
float型だから、
oSheet.getCellByPosition(0,1).CharHeight=24.3
も有効だ。
oSheet.getCellByPosition(0,1).CharHeight=24.3
も有効だ。
予想はしていたが、これにもAsianな言語文字には、CharHeightAsian というのがある。
日本語文字のフォントサイズを指定するには、CharHeightAsian を使わなければならない。
oSheet.getCellByPosition(0,1).CharHeight=24
oSheet.getCellByPosition(0,1).CharHeightAsian=24
日本語文字のフォントサイズを指定するには、CharHeightAsian を使わなければならない。
oSheet.getCellByPosition(0,1).CharHeight=24
oSheet.getCellByPosition(0,1).CharHeightAsian=24
Asianな言語文字もも英数文字もイッキに指定できる方法はないのだろうか?
調べる必要がある。(誰か教えて下さい。)
調べる必要がある。(誰か教えて下さい。)
… 次回へ続く …