projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the font width, weight and slant to the font style.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
text-controller-impl.h
diff --git
a/dali-toolkit/internal/text/text-controller-impl.h
b/dali-toolkit/internal/text/text-controller-impl.h
index
e60fe37
..
65fce8e
100644
(file)
--- a/
dali-toolkit/internal/text/text-controller-impl.h
+++ b/
dali-toolkit/internal/text/text-controller-impl.h
@@
-175,8
+175,8
@@
struct ModifyEvent
struct FontDefaults
{
FontDefaults()
struct FontDefaults
{
FontDefaults()
- : m
DefaultFontFamily(""
),
- m
DefaultFontStyle(""
),
+ : m
FontDescription(
),
+ m
FontStyle(
),
mDefaultPointSize(0.0f),
mFontId(0u)
{
mDefaultPointSize(0.0f),
mFontId(0u)
{
@@
-187,14
+187,14
@@
struct FontDefaults
if( !mFontId )
{
Dali::TextAbstraction::PointSize26Dot6 pointSize = mDefaultPointSize*64;
if( !mFontId )
{
Dali::TextAbstraction::PointSize26Dot6 pointSize = mDefaultPointSize*64;
- mFontId = fontClient.GetFontId( m
DefaultFontFamily, mDefaultFontStyle
, pointSize );
+ mFontId = fontClient.GetFontId( m
FontDescription
, pointSize );
}
return mFontId;
}
}
return mFontId;
}
-
std::string mDefaultFontFamily
;
- std::string m
Default
FontStyle;
+
TextAbstraction::FontDescription mFontDescription
;
+ std::string mFontStyle;
float mDefaultPointSize;
FontId mFontId;
};
float mDefaultPointSize;
FontId mFontId;
};
@@
-218,7
+218,7
@@
struct Controller::Impl
mOperationsPending( NO_OPERATION ),
mMaximumNumberOfCharacters( 50 ),
mRecalculateNaturalSize( true ),
mOperationsPending( NO_OPERATION ),
mMaximumNumberOfCharacters( 50 ),
mRecalculateNaturalSize( true ),
- mUserDefinedFontFamily( false)
+ mUserDefinedFontFamily( false
)
{
mLogicalModel = LogicalModel::New();
mVisualModel = VisualModel::New();
{
mLogicalModel = LogicalModel::New();
mVisualModel = VisualModel::New();
@@
-488,7
+488,7
@@
struct Controller::Impl
Length mMaximumNumberOfCharacters; ///< Maximum number of characters that can be inserted.
bool mRecalculateNaturalSize:1; ///< Whether the natural size needs to be recalculated.
Length mMaximumNumberOfCharacters; ///< Maximum number of characters that can be inserted.
bool mRecalculateNaturalSize:1; ///< Whether the natural size needs to be recalculated.
- bool mUserDefinedFontFamily:1; ///< Whether the Font family was
Set by the user instead of being left as sytem default
+ bool mUserDefinedFontFamily:1; ///< Whether the Font family was
set by the user instead of being left as sytem default.
};
} // namespace Text
};
} // namespace Text