added #font method to paragraph styles

This commit is contained in:
felipe
2017-03-12 17:53:32 +01:00
parent 7f4d1bf3e7
commit 1cd681bc2d
3 changed files with 21 additions and 0 deletions

View File

@ -131,6 +131,13 @@ export class ParagraphStyle extends Style {
return this;
}
public font(fontName: string): ParagraphStyle {
this.addRunProperty(new formatting.RunFonts(fontName));
return this;
}
// --------------------- Paragraph formatting ------------------------ //
public indent(left: number, hanging?: number): ParagraphStyle {
this.addParagraphProperty(new Indent(left, hanging));
return this;