[haiku-bugs] Re: [Haiku] #3651: Possible CharacterMap enhancements (easy)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 26 Nov 2014 07:20:09 -0000

#3651: Possible CharacterMap enhancements (easy)
-----------------------------------------+---------------------------
   Reporter:  humdinger                  |      Owner:  axeld
       Type:  enhancement                |     Status:  new
   Priority:  normal                     |  Milestone:  R1
  Component:  Applications/CharacterMap  |    Version:  R1/pre-alpha1
 Resolution:                             |   Keywords:
 Blocked By:                             |   Blocking:
Has a Patch:  1                          |   Platform:  All
-----------------------------------------+---------------------------

Comment (by pulkomandy):

 One of the directory constants for BPathFinder is
 B_FIND_PATH_FONTS_DIRECTORY (defined in FindDirectory.h). The BPathFinder
 APIs will return a complete list of all font directories in the system,
 and if we add more, it will return those as well.

 For enumerating fonts, the existing APIs can be used (see for example
 src/preferences/appearance/FontMenu.cpp). As Axel suggested, maybe a
 lazily built menu would be the simplest solution. To implement this, you
 would use the "MenusBeginning" hook function (in BWindow) to recreate the
 whole font menu. This way, there is no need to node monitor anything and
 you can just get the current list of fonts from the FontManager, like the
 Appearance preferences do.

--
Ticket URL: <https://dev.haiku-os.org/ticket/3651#comment:19>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: