jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
36 stars 6 forks source link

Improve the `TextStyle` builder #192

Closed jferard closed 4 years ago

jferard commented 4 years ago
TextProperties.builder().fontName(
                    LOFonts.LIBERATION_MONO).buildHiddenStyle("source")

Should be written as:

TextStyle.builder("source").fontName(
                    LOFonts.LIBERATION_MONO).build()

The underlying TextProperties builder should have two new methods: