font
Arguments
The function accepts single argument which is a named parameter that takes the following values:
Parameter |
Value |
Comments |
style |
normal — regular type bold — bold type italic — italic type strike — strikethrough text underline — underline subscript — subscript superscript — superscript |
Values can be combined via underscore (“_”), e.g.: style:=bold_underline. |
size |
font size |
size:=14 |
name |
font name |
name:="Times New Roman" |
scope |
text — maximum text fragment that matches the query conditions (default value) token — a token matching the query sentence — a sentence or its part matching the query paragraph — a paragraph or its part matching the query |
The scope parameter is only applicable if function arguments are not specified. For example, in the query font(style:=bold, noun()) query, the scope parameter is unnecessary because the function will find the text fragment corresponding to a noun. |
spacing |
spacing between characters |
The value is measured in points (pts) and takes the following values: negative number - condensed spacing; positive number - expanded spacing; 0 - no spacing; |
The function works in docx format documents.