Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
odfdom-0.8.7
-
None
-
None
-
Operating System: Linux
Platform: PC
-
325
Description
Class StyleDropCapElement has method void setStyleLengthAttribute(Integer styleLengthValue). This method takes oly an integer. I wanted to set the length of the drop cap to "word". This works in LibreOffice. It is a possible value for style:length, according to the specification.
See the specs:
19.494 style:length
The style:length attribute specifies the number of characters that are displayed in a larger font.
The defined values for the style:length attribute are:
●word: specifies a set of characters to be displayed in a larger font.
●a value of type positiveInteger 18.2
Note: What will be treated as a “word” by a consumer is locale specific.
The default value for this attribute is 1.
The style:length attribute is usable with the following element: <style:drop-cap> 17.9.
The values of the style:length attribute are word or a value of type positiveInteger 18.2.
May the ODF Toolkit also implement:
setStyleLengthAttribute(String styleLengthValue)
Teus