[haiku-bugs] [Haiku] #6118: [Patch] WebPositive Fallback fonts enhancement

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Wed, 02 Jun 2010 11:58:29 -0000

#6118: [Patch] WebPositive Fallback fonts enhancement
--------------------------------------+-------------------------------------
 Reporter:  mt                        |       Owner:  stippi   
     Type:  enhancement               |      Status:  new      
 Priority:  normal                    |   Milestone:  R1       
Component:  Applications/WebPositive  |     Version:  R1/alpha2
 Keywords:                            |    Platform:  All      
Blockedby:                            |       Patch:  0        
 Blocking:                            |  
--------------------------------------+-------------------------------------
 In findMatchingFontFamily() at
 WebCore/platform/graphics/haiku/FontPlatformDataHaiku.cpp, Fallback fonts
 are constant.
 {{{
         if (familyName.contains("Sans", false) != B_ERROR)
             strncpy(*fontFamily, "DejaVu Sans", B_FONT_FAMILY_LENGTH + 1);
         else if (familyName.contains("Serif", false) != B_ERROR)
             strncpy(*fontFamily, "DejaVu Serif", B_FONT_FAMILY_LENGTH +
 1);
         else if (familyName.contains("Mono", false) != B_ERROR)
             strncpy(*fontFamily, "DejaVu Mono", B_FONT_FAMILY_LENGTH + 1);
         else {
             // This is the fallback font.
             strncpy(*fontFamily, "DejaVu Serif", B_FONT_FAMILY_LENGTH +
 1);
 }}}
 This patch makes user can set fallback fonts.
 (Fallback fonts = user setting font in WebPositive's setting panel)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6118>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: