// http://www.apache.org/licenses/LICENSE-2.0/
//
// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an ”AS IS” BASIS,
+// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
{
const _Util::FixedPoint26_6 _SYSTEM_DEFAULT_FONT_SIZE(16);
+const long _MEDIUM_FONT_BOLD_WEIGHT = 600;
template<typename Type>
inline void
}
}
- if (__fontAttrib.style & FONT_STYLE_BOLD)
+ _IFont::Property property;
+ GET_FONT_PROPERTY(property, false);
+
+ if (__fontAttrib.style & FONT_STYLE_BOLD && property.weightClass < _MEDIUM_FONT_BOLD_WEIGHT)
{
_IFont::Attrib attr;
pThis->GetAttrib(attr);
}
#endif
- if (__fontAttrib.style & FONT_STYLE_BOLD)
+ _IFont::Property property;
+ GET_FONT_PROPERTY(property, false);
+
+ if (__fontAttrib.style & FONT_STYLE_BOLD && property.weightClass < _MEDIUM_FONT_BOLD_WEIGHT)
{
_IFont::Attrib attr;
}
}
- if (this->GetStyle() & FONT_STYLE_BOLD)
+ _IFont::Property property;
+ GET_FONT_PROPERTY(property, false);
+
+ if (__fontAttrib.style & FONT_STYLE_BOLD && property.weightClass < _MEDIUM_FONT_BOLD_WEIGHT)
{
_IFont::Attrib attr;
this->GetAttrib(attr);