[feature-requests:#1562] Change ListBox to use SetFont(std::shared_ptr<Font> font)
Status: open
Group: Initial
Labels: Scintilla autocomplete
Created: Sun Jun 22, 2025 02:40 AM UTC by Zufu Liu
Last Updated: Sun Jun 22, 2025 02:40 AM UTC
Owner: Neil Hodgson
This could avoid font duplicate for FontWin, FontGDI, FontDirectWrite.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
That would be a platform API break so should wait for a major version change when possible.
While this could be worked around by providing a default ListBox::SetFont(std::shared_ptr<Font>)
implementation that returns an unimplemented status then falling back to the SetFont(const Font *)
it seems to me too much to save font creation when a UI list is displayed.