Bug 54273

Summary: Altering text properties on a CharacterRun.
Product: POI Reporter: Zachary1234 <stargate7thsymbol>
Component: HWPFAssignee: POI Developers List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Zachary1234 2012-12-10 07:51:24 UTC
#It isn't particularly clear how you change the Font name  a character run (on methods inside that class, such that the HWPFDocument is updated correctly to be written out to file again as a Save).

#There are two functions, called

void setFtcAscii(int ftcAscii) 

setFtcFE(int ftcFE)

which have poor names not clear to their function.  Are the int values
needed here the supported font names, which reside in a Class.FONTNAME
fashion inside a Class I don't know of?

There needs to be a way to CharacterRun.setFontName(String font),
or a static class with all the supported fonts as int fields.
Comment 1 Dominik Stadler 2017-10-09 19:38:22 UTC
Long time without an answer here and this is more a question which should be asked on stackoverflow or the mailing lists, an answer can then be made into a patch to improve documentation/naming/whatever.