[haiku-bugs] Re: [Haiku] #11518: Implement BFont::Blocks

  • From: "dsizzle" <trac@xxxxxxxxxxxx>
  • Date: Thu, 04 May 2017 04:19:44 -0000

#11518: Implement BFont::Blocks
--------------------------------+------------------------------------------
   Reporter:  dsizzle           |      Owner:  nobody
       Type:  enhancement       |     Status:  assigned
   Priority:  normal            |  Milestone:  R1
  Component:  Kits/Interface    |    Version:  R1/Development
  Kit                           |
 Resolution:                    |   Keywords:  bfont, blocks, font, unicode
 Blocked By:                    |   Blocking:  3651
Has a Patch:  1                 |   Platform:  All
--------------------------------+------------------------------------------

Comment (by dsizzle):

 Ok, I set Pe to strip trailing blanks so that should be better for future
 stuff, and I fixed the extraneous parens in ServerFont.cpp line 520.
 Resaving the file also got rid of the trailing blanks.

 I also initialized the vars to avoid the warning.  I use jam with -q which
 I *thought* uses -Wall and -Werror...do you also use -Wextra?

 A possible reason to have the unicode_block_ranges public could be for a
 tool such as CharacterMap, which currently defines its own data structure
 with similar information: unicode ranges, a mapping to a block constant
 (if available, otherwise kNoBlock), and whether the block is private or
 not.  I can see where it might be good to have that as part of the API,
 but I can also argue that it is specialized to a tool like CharacterMap,
 so not generally useful compiled into Haiku itself (like Pulkomandy's
 comment about mostly wanting to look up a few chars here and there but
 almost never a whole block).

--
Ticket URL: <https://dev.haiku-os.org/ticket/11518#comment:39>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: