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

  • From: "dsizzle" <trac@xxxxxxxxxxxx>
  • Date: Thu, 10 Mar 2016 05:28:22 -0000

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

Comment (by dsizzle):

 Thanks for the comments, korli and pulkomandy.  There were seveal new
 items to learn so I didn't expect to get them right the first time! :)

 I've attached a new patch to address these items:

 1- removed change to DefaultBuildprofiles
 2- added code to only mirror what OpenSSl does; if fontconfig isn't
 available it's not used at all
 3- I had changed the public API initially because it wasn't actually used
 by anything in the Haiku codebase, and I didn't  suspect any 3rd-party dev
 would've used it.  unicode_block is basically just an arbitrary BeOS
 bitfieldt that would be basically useless without something like
 BFont::Blocks.In any case, I think my new solution is safer:  I added an
 overloading constructor to match the old API.  I also reverted all of the
 old BeOS unicode_block constants so they are identical to what they were
 before.  This should provide backwards compatibility if anyone actually
 did use it.

 *CharacterMap does "use" it but doesn't actually do anything with it.

 Let me know i that is a good solution.  Thanks!

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

Other related posts: