[haiku-bugs] Re: [Haiku] #16212: Some Japanese text style missing in Webpositive

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 08 Jun 2020 20:48:41 -0000

#16212: Some Japanese text style missing in Webpositive
---------------------------------+----------------------------
  Reporter:  mt                  |      Owner:  axeld
      Type:  bug                 |     Status:  new
  Priority:  normal              |  Milestone:  Unscheduled
 Component:  Servers/app_server  |    Version:  R1/Development
Resolution:                      |   Keywords:
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+----------------------------
Comment (by nephele):

I think we need check what font.Style() returns. If font.Style() returns
 simply "Bold", we could fallback "Noto Sans CJK JP Bold" already.

 This already happens, I am just not sure why it does not work if it falls
 back from Noto sans bold as opposed to noto sans display bold (It might be
 a simple problem, but i have been really unsucsesfull to get debug output
 from thsi part of the code :/)

Fallback fonts Noto Sans Thai, CJK JP, and Symbol don't have "Italic". So
 I think we check "Bold" first, but for "Noto Sans display" fallback, we
 check "Bold Italic" first...

 Problem is that this code should later use any user installed fonts to
 fallback to aswell, and we can't make many assumptions about which styles
 are available or not

 I think the best way is to
 1. match style
 2. match style, strip italic part of style
 3. try "Regular" style
 4. try and style

 the code currently does 1. and 4., with 1. not working correctly always
 (and 3. beeing the patch on gerrit)
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16212#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: