I use the Font class in my application’s database and to save the state, I serialize the data, notably with this json library (https://json.nlohmann.me) which uses the default class constructor. However, with JUCE 8, the default constructor of a Font is deprecated. To overcome this problem, I need to replace the Font with a FontOptions, but this class doesn’t have toString() and fromString() methods like the Font class. I can reimplement my own methods adapted for the FontOptions class, but it seems to me that it would be more logical to have these methods directly in the FontOptions class (Font::fromString() creates a FontOptions), and it would be useful for everyone.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
FontOptions Question | 5 | 166 | October 14, 2024 | |
JUCE 8 (possibly dumb) FontOptions question | 2 | 213 | September 3, 2024 | |
Font(FontOptions) constructor gives bigger fonts | 15 | 902 | September 6, 2024 | |
'Font' is deprecated: Use the constructor that takes a FontOptions argument | 1 | 208 | November 24, 2024 | |
FontOptions::withKerningFactor | 5 | 54 | September 11, 2025 |