connium/simple-odf

Set font family to a paragraph

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
On a paragraph it should be possible to set the font family so that different paragraphs can have different fonts.

Describe the solution you'd like
There should be a font style which accepts a font name as string. If the font is not defined on the system, a warning should be logged when serializing the document. The document creation should not fail if a font is unknown, because the font might be available on the target system.

  • Set font name as string
  • Log warning if font is unknown

Additional context
See style:text-properties in the OASIS Open Document Format.