Hi All, 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.
just +1
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...
Code pointers: To learn how to know if there are font features available for a font see cui/source/dialogs/FontFeaturesDialog.cxx void FontFeaturesDialog::initialize() In cui/source/tabpages/chardlg.cxx SvxCharNamePage::UpdatePreview_Impl() set the sensitivity and tool tip for: m_xWestFontFeaturesButton m_xEastFontFeaturesButton m_xCTLFontFeaturesButton
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": https://git.libreoffice.org/core/commit/44db9f08077f388306ef0bf7277c93a1e5cd89b8 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: https://wiki.documentfoundation.org/Testing_Daily_Builds 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 pointers: weld::Button::set_tooltip SvxResId cui/inc/strings.hrc
code pointer weld::Button:set_tooltip should have been: weld::Button::set_tooltip_text