Here’s a helpful guest post for BlackBerry® 10 developers from Kizito Kasengulu – Ed.
The BlackBerry 10 system fonts have been updated with the new beta release of the BlackBerry 10 platform. The default font for the Cascades™ UI and bbui.js in BlackBerry 10 is Slate Pro; however, other fonts can be substituted depending on the locale and region selected for the device. The following new fonts have been added in BlackBerry 10:
- AkhbarOTS-Bold
- AkhbarOTS
- Browallia New
- Browallia New Bold
- Browallia New Italic
- Browallia New Bold Italic
- HadassahOTS-Bold
- HadassahOTS
- HeiseiKakuGothW5_213_C
- HeiseiKakuGoth_JIS0213-B_C
- HeiseiMinchoW3_JIS0213_C
- HYGothic-Medium
- MHeiM.GB18030_200910
- MSungL.cp950.v311.1
- MT Extra
- SlatePro-Condensed
- SlatePro-Italic
- SlatePro-Light
- SlatePro-LightItalic
- SlatePro-Medium
- SlatePro-MediumCondensed
- SlatePro
- Symbol
- ThaiAltOTS-Bold
- ThaiAltOTS
The following fonts have been deprecated, either with no replacement or because a new font eliminates the need for them:
- MyriadPro-SemiCnIt
- RyoTextPlusN-Medium
- MyriadPro-BoldSemiCnIt
- LiberationMono-Bold
- LiberationMono-BoldItalic
- LiberationMono-Italic
- LiberationMono-Regular
- LiberationSans-Bold
- LiberationSans-BoldItalic
- LiberationSans-Italic
- LiberationSans-Regular
- LiberationSerif-Bold
- LiberationSerif-BoldItalic
- LiberationSerif-Italic
- LiberationSerif-Regular
- Garuda-Bold
- Garuda-BoldOblique
- Garuda-Oblique
- Garuda
- Vera
- VeraBI
- VeraBd
- Verat
- VeraMoBI
- VeraMoBd
- VeraMoIt
- VeraMono
- Vera
- verasebd
The following fonts have been removed with a replacement added or chosen from fonts previously available. The below table summarizes the font replacements made:
Original Font Replacement Font AdobeGothicStd-Light HYGothic-Medium AdobeHeitiStd-Regular MHeiM.GB18030_200910 AdobeMingStd-Light MSungL.cp950.v311.1 AdobeTextPro-Bold Georgia Bold AdobeTextPro-BoldIt Georgia Bold Italic AdobeTextPro-It Georgia Italic AdobeTextPro-Regular Georgia AdobeThai-Bold Browallia New Bold / ThaiAltOTS-Bold (height restricted) AdobeThai-BoldItalic Browallia New Bold Italic AdobeThai-Italic Browallia New Italic AdobeThai-Regular Browallia New / ThaiAltOTS (height restricted) MyriadPro-Bold SlatePro-Medium MyriadPro-BoldIt SlatePro-Medium-Italic MyriadPro-BoldSemiCn SlatePro-Medium-Condensed MyriadPro-It SlatePro-Italic MyriadPro-Regular SlatePro MyriadPro-SemiCn SlatePro-Condensed RyoGothicPlusN-Bold HeiseiKakuGoth_JIS0213-B_C RyoGothicPlusN-Regular HeiseiKakuGothW5_213_C RyoTextPlusN-Light HeiseiKakuMincho
Default Fonts
File Name Full Name Scripts Supported SlatePro-Condensed Slate Pro Condensed Latin, Greek, Cyrillic SlatePro-Italic Slate Pro Italic Latin SlatePro-Light Slate Pro Light Latin SlatePro-LightItalic Slate Pro Light Italic Latin SlatePro-Medium Slate Pro Medium Latin, Greek, Cyrillic SlatePro-Medium-Condensed Slate Pro Medium Condensed Latin SlatePro Slate Pro Latin, Greek, Cyrillic
The fonts listed above are the default fonts for Cascades, chosen by text style properties when no font name is provided and chosen by default for certain controls.
The following examples show how to declare text styles in both C++ and QML that will protect the developer against default font changes:
C++:
#include <bb/cascades/TextStyleDefinition>
Previous Next