Bug 54273 - Altering text properties on a CharacterRun.
Summary: Altering text properties on a CharacterRun.
Status: RESOLVED WONTFIX
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-10 07:51 UTC by Zachary1234
Modified: 2017-10-09 19:38 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.