How to read font size of each word in a word document using POI?

谁说胖子不能爱 提交于 2019-12-01 04:25:30

Yes, that's the correct way; the measurement is in half points.

In a docx, you'd have something like:

<w:rPr>

  <w:sz w:val="28" /> 

</w:rPr>

ECMA 376 spec on @sz defines the unit as ST_HpsMeasure (Measurement in Half-Points)

Its the same with the binary doc format, which HWPF supports. If you look at [MS-DOC], you'll see it also specifies the size of text in half-points.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!