Style fixes
This commit is contained in:
@ -75,9 +75,7 @@ export class ParagraphStyle extends Style {
|
|||||||
// ---------- Run formatting ---------------------- //
|
// ---------- Run formatting ---------------------- //
|
||||||
|
|
||||||
public size(twips: number): ParagraphStyle {
|
public size(twips: number): ParagraphStyle {
|
||||||
return this
|
return this.addRunProperty(new formatting.Size(twips)).addRunProperty(new formatting.SizeComplexScript(twips));
|
||||||
.addRunProperty(new formatting.Size(twips))
|
|
||||||
.addRunProperty(new formatting.SizeComplexScript(twips));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bold(): ParagraphStyle {
|
public bold(): ParagraphStyle {
|
||||||
@ -265,9 +263,7 @@ export class CharacterStyle extends Style {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public size(twips: number): CharacterStyle {
|
public size(twips: number): CharacterStyle {
|
||||||
return this
|
return this.addRunProperty(new formatting.Size(twips)).addRunProperty(new formatting.SizeComplexScript(twips));
|
||||||
.addRunProperty(new formatting.Size(twips))
|
|
||||||
.addRunProperty(new formatting.SizeComplexScript(twips));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user