https://bugs.documentfoundation.org/show_bug.cgi?id=77878

João Paulo <joaopauloag-freedesk...@yahoo.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NOTOURBUG                   |---

--- Comment #7 from João Paulo <joaopauloag-freedesk...@yahoo.com.br> ---
(In reply to Yousuf Philips (jay) (retired) from comment #2)
> Not so sure if we should be supporting such a feature when MSDN states, "In
> Windows 7, there are no APIs for directly querying which fonts are hidden,
> or for setting fonts to be hidden."
> 
> https://msdn.microsoft.com/en-us/library/dd317704(VS.85,loband).aspx
> http://loseyourmind.com/Why-hide-fonts-does-not-work-with-windows-7.aspx

(In reply to Khaled Hosny from comment #5)
> NOTOURBUG per comment 2.

I think it is something LibreOffice could do better.  On the first link, which
redirects to
https://docs.microsoft.com/pt-br/windows/win32/intl/about-international-fonts-and-text,
even if it states there are no APIs on Windows 7 (and maybe up) to directly
query which fonts are hidden, it also says that "If you use the Windows
ChooseFont API (Font common dialog) to enable font selection today, you will
get the new behavior [for hiding fonts] for free."

The ChooseFont API also accepts templates so the dialog can be customized:  See
"https://docs.microsoft.com/en-us/windows/win32/dlgbox/font-dialog-box#customizing-the-font-dialog-box-on-windows-7";
and
"https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms646914(v=vs.85)".

If ChooseFont API is not desirable, there is a relatively easy way (for
developers, it is -- I'm not) to get the list of hidden fonts and then remove
from the fonts shown to the user:

"HKCU\Software\Microsoft\Windows NT\CurrentVersion\Font Management" has a
MULTI_SZ key named "Inactive Fonts" with all the fonts that was hidden by the
user or by the system on behalf of the user.

There is an example for using it at
https://visualstudiomagazine.com/articles/2010/10/14/honoring-hidden-fonts.aspx.
 Unfortunately, it is on Visual Basic, but I hope it will help you understand.

As there are others (Comment 6) who also wants LibreOffice to hide unused
international fonts, and there is a little more information I could gather, I
am reopening this bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to