Skip to content

Commit 8c766b6

Browse files
authored
Merge pull request #1 from pseudovector/master
Constructs new RtfParagraphStyle with Font object
2 parents 9476d64 + f3dbbcb commit 8c766b6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.metals
2+
.vscode
3+
itext-rtf*.jar

src/com/lowagie/text/rtf/style/RtfParagraphStyle.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,19 @@ public RtfParagraphStyle(String styleName, String fontName, int fontSize, int fo
271271
super(null, new RtfFont(fontName, fontSize, fontStyle, fontColor));
272272
this.styleName = styleName;
273273
}
274+
275+
/**
276+
* Constructs a new RtfParagraphStyle with the given attributes.
277+
*
278+
* @since 2.1.7-mod
279+
*
280+
* @param styleName The name of this RtfParagraphStyle.
281+
* @param font The Font to use as a base
282+
*/
283+
public RtfParagraphStyle(String styleName, Font font) {
284+
super(null, font);
285+
this.styleName = styleName;
286+
}
274287

275288
/**
276289
* Constructs a new RtfParagraphStyle that is based on an existing RtfParagraphStyle.

0 commit comments

Comments
 (0)