This commit is contained in:
amitm02
2018-07-25 15:02:58 +03:00
parent 0689489985
commit 696b5daf5c
211 changed files with 252 additions and 84025 deletions

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPtext.php
import { Break } from "./break";
import { Caps, SmallCaps } from "./caps";
import { Bold, Color, DoubleStrike, Italics, Size, RTL, Strike } from "./formatting";
import { Bold, Color, DoubleStrike, Italics, RTL, Size, SizeCs, Strike } from "./formatting";
import { Begin, End, Page, Separate } from "./page-number";
import { RunProperties } from "./properties";
import { RunFonts } from "./run-fonts";
@ -43,6 +43,7 @@ export class Run extends XmlComponent {
public size(size: number): Run {
this.properties.push(new Size(size));
this.properties.push(new SizeCs(size));
return this;
}
@ -99,8 +100,8 @@ export class Run extends XmlComponent {
return this;
}
public font(fontName: string): Run {
this.properties.push(new RunFonts(fontName));
public font(fontName: string, hint?: string | undefined): Run {
this.properties.push(new RunFonts(fontName, hint));
return this;
}