[haiku-commits] r38816 - haiku/trunk/src/kits/interface/textview_support

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 26 Sep 2010 14:49:57 +0200 (CEST)

Author: stippi
Date: 2010-09-26 14:49:57 +0200 (Sun, 26 Sep 2010)
New Revision: 38816
Changeset: http://dev.haiku-os.org/changeset/38816

Modified:
   haiku/trunk/src/kits/interface/textview_support/StyleBuffer.cpp
Log:
Allow to set the false bold width in BTextView style runs.


Modified: haiku/trunk/src/kits/interface/textview_support/StyleBuffer.cpp
===================================================================
--- haiku/trunk/src/kits/interface/textview_support/StyleBuffer.cpp     
2010-09-26 09:52:20 UTC (rev 38815)
+++ haiku/trunk/src/kits/interface/textview_support/StyleBuffer.cpp     
2010-09-26 12:49:57 UTC (rev 38816)
@@ -170,6 +170,9 @@
 
                if (mode & B_FONT_SHEAR)
                        toFont->SetShear(fromFont->Shear());
+
+               if (mode & B_FONT_FALSE_BOLD_WIDTH)
+                       toFont->SetFalseBoldWidth(fromFont->FalseBoldWidth());
        }
 
        if (fromColor != NULL && toColor != NULL
@@ -510,6 +513,12 @@
                if (firstStyle.font.Shear() != otherStyle.font.Shear())
                        mode &= ~B_FONT_SHEAR;
        }
+       if (mode & B_FONT_FALSE_BOLD_WIDTH) {
+               if (firstStyle.font.FalseBoldWidth()
+                       != otherStyle.font.FalseBoldWidth()) {
+                       mode &= ~B_FONT_FALSE_BOLD_WIDTH;
+               }
+       }
        if (firstStyle.color != otherStyle.color)
                sameColor = false;
 


Other related posts:

  • » [haiku-commits] r38816 - haiku/trunk/src/kits/interface/textview_support - superstippi