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

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 May 2017 07:07:19 -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 pulkomandy):

 The unicode blocks are defined in the standard, Wikipedia has a list:
 https://en.wikipedia.org/wiki/Unicode_block

 Source of the block list at unicode:
 http://www.unicode.org/Public/UNIDATA/Blocks.txt

 I think the API could use that, but being able to check a more specific
 range is great too (in some cases, I want to check that a font has a few
 special characters I'm going to use - not a whole block).

 So, what I would do is:
 1) Keep your patch as it is, with support for checking characters in a
 given range
 2) Add an API to convert an unicode block constant to the matching range
 (we can use unicode_block_range for this)
 3) Update our block constant list to match Unicode 9, and make the API to
 match them with unicode_block_range handle all these blocks.

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

Other related posts: