Wednesday, 15 May 2013

How to identify font name for a run in .docx file? -



How to identify font name for a run in .docx file? -

i have run:

<w:r w:rsidrpr="00a7650b"> <w:rpr> <w:b/> <w:sz w:val="40"/> <w:szcs w:val="40"/> <w:lang w:val="en-us"/> </w:rpr> <w:t>this title</w:t> </w:r>

default paragraph style is:

<w:style w:type="paragraph" w:default="1" w:styleid="normal"> <w:name w:val="normal"/> <w:qformat/> </w:style>

this run appears calibri font name in msword. place calibri nowadays within .docx theme1.xml (a:theme/a:themeelements/a:fontscheme/a:minorfont/a:latin). theme "office theme" fontscheme "office".

is right place search font name in case? how can identify in code, run should utilize theme1.xml , theme name 'office theme'? please don't suggest utilize openxml sdk, have myself.

in [content_types].xml there reference theme1.xml:

<override partname="/word/theme/theme1.xml" contenttype="application/vnd.openxmlformats-officedocument.theme+xml"/>

inside theme1.xml there

<a:minorfont> <a:latin typeface="calibri"/>

its default font regular text.

fonts docx

No comments:

Post a Comment