CPack/WIX: Make txt to rtf converter use monospaced font sized for minimal wrapping, and set language to en-US
When specifying a text file for CPACK_RESOURCE_FILE_LICENSE
, the WiX CPack generator converts it to RTF using the cmWIXRichTextFormatWriter
converter.
The converter uses an Arial font of size "20", which is a poor choice for most licenses. Generally, plain-text license files are formatted to be viewed best with a monospace font and a character width of at least 80, since many licenses hard-code wrapping prior to the 80 character limit. The size of the license field in the MSI installer does not allow 80 characters of text at this size, causing ugly additional wrapping.
Additionally, the language is set as German (1031) instead of US English (1033).
The desired solution:
- Set the font face to the monospace Consolas.
- Either set the font size to 14, or expand the width of the license field in the MSI installer, to prevent unwanted additional wrapping.
- Replace
deflang1031
withdeflang1033
.
Edited by Brad King