When a font has no features and the Features... button is pressed, a dialog showing only the font preview is displayed. It is possible to make the button sensitive to whether the the font has features or not.
Steps to repro using Writer:
1) Open Writer
2) Menu > Format > Character... > Font tab
3) Using any of the Text Font Family combo boxes select any font family that has no font features, e.g. Lohit Bengali
4) Click Font Features... button
Result: Font Features dialog box shows preview of font with no features to select
Proposal is to disable the Features... button for fonts with no features.
Yes, but the disabled button should give a feedback why it's not possible to run the action. Meaning if sensitive is false a tooltip is assigned.
Sounds like an easyhack...
To learn how to know if there are font features available for a font
set the sensitivity and tool tip for:
I will try to fix this bug.
I have a change pending at https://gerrit.libreoffice.org/c/core/+/118965
Deb Barkley-Yeung committed a patch related to this issue.
It has been pushed to "master":
tdf#139654 Font feature sensativity
It will be available in 7.3.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
@Deb, Great work on the enhancement!
In Comment 2 Heiko recommends a tooltip when the selected font has no available font features. Possibly something like "The selected font has no available font features"
code pointer weld::Button:set_tooltip should have been: