* implemented "false bold" for text rendering. It is a new property
of BFont. You can BFont::SetFalseBoldWidth(float) a width on a BFont object, and it will cause the glyph shapes to be run through an AGG "contour converter" so that they become thicker or thinner. IIRC, this is commonly referred to as "false bold". The "width" value is the distance in pixels that the new glyph outline will be offset from the original outline. It would be nice if someone could look at my change to View.h with regards to the B_FONT_ALL flag. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -153,6 +153,7 @@ class BFont {
|
||||
void SetSize(float size);
|
||||
void SetShear(float shear);
|
||||
void SetRotation(float rotation);
|
||||
void SetFalseBoldWidth(float width);
|
||||
void SetSpacing(uint8 spacing);
|
||||
void SetEncoding(uint8 encoding);
|
||||
void SetFace(uint16 face);
|
||||
@@ -164,6 +165,7 @@ class BFont {
|
||||
float Size() const;
|
||||
float Shear() const;
|
||||
float Rotation() const;
|
||||
float FalseBoldWidth() const;
|
||||
uint8 Spacing() const;
|
||||
uint8 Encoding() const;
|
||||
uint16 Face() const;
|
||||
@@ -239,13 +241,14 @@ class BFont {
|
||||
float fSize;
|
||||
float fShear;
|
||||
float fRotation;
|
||||
float fFalseBoldWidth;
|
||||
uint8 fSpacing;
|
||||
uint8 fEncoding;
|
||||
uint16 fFace;
|
||||
uint32 fFlags;
|
||||
mutable font_height fHeight;
|
||||
mutable uint32 fExtraFlags;
|
||||
uint32 _reserved[2];
|
||||
uint32 _reserved[1];
|
||||
|
||||
void _GetExtraFlags() const;
|
||||
void _GetBoundingBoxes(const char charArray[],
|
||||
|
||||
@@ -61,7 +61,8 @@ enum {
|
||||
B_FONT_ENCODING = 0x00000020,
|
||||
B_FONT_FACE = 0x00000040,
|
||||
B_FONT_FLAGS = 0x00000080,
|
||||
B_FONT_ALL = 0x000000FF
|
||||
B_FONT_FALSE_BOLD_WIDTH = 0x00000100,
|
||||
B_FONT_ALL = 0x000001FF
|
||||
};
|
||||
|
||||
// view flags
|
||||
|
||||
Reference in New Issue
Block a user