Opened 9 years ago

Closed 9 years ago

#12592 closed Bug (wontfix)

No default / calculated font displayed

Reported by: Thomas Jones Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


Generally speaking, after having selected a font by highlighting text and picking a font from a dropdown, the "onselectionchanged" handler within the font plugin handles updating the dropdown to the selected value when the cursor is in that range.

However, when no font is selected (the browser is rendering the default font in the stylesheet), the font dropdown displays "Font" even when the font that is being rendered is one of the fonts in the dropdown.

Ideally, this dropdown would be up-to-date, even when rendering a "default" stylesheet-applied font.

Change History (1)

comment:1 Changed 9 years ago by Piotrek Koszuliński

Resolution: wontfix
Status: newclosed

It can't work this way, because if an option is selected, something must happen if you click it again. Normally, the span tag is removed, but if the font was read from the computed styles there would be nothing to do. That would be confusing for the end user even more than the current situation.

On the other hand the name of the font could be displayed in the button, but at the same time none could be selected in the drop down. But there's another problem - the font name is limited to the config.font_names list which contains nice font names. If we read it from the computed styles we couldn't use that list any more and the names would be ugly and wrong.

Last but not least, I haven't checked it, but computed styles return either many font names or just the first one which exists in the OS or was loaded. In both case the result is ugly and may depended on the env.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy