Skip to content
Permalink
Browse files

Followup 87c05f1

  • Loading branch information
nyalldawson committed Jun 27, 2015
1 parent 87c05f1 commit e4d0d27cd25539b5bf0a9ea5aa3b63bf44069f87
Showing with 20 additions and 0 deletions.
  1. +16 −0 python/core/qgsfontutils.sip
  2. +4 −0 src/core/qgsfontutils.h
@@ -93,5 +93,21 @@ class QgsFontUtils
* @see toXmlElement
*/
static bool setFromXmlChildNode( QFont& font, const QDomElement& element, const QString& childNode );

/**Returns the localized named style of a font, if such a translation is available.
* @param namedStyle a named style, i.e. "Bold", "Italic", etc
* @returns The localized named style
* @note added in QGIS 2.12
* @see untranslateNamedStyle
*/
static QString translateNamedStyle( const QString& namedStyle );

/**Returns the english named style of a font, if possible.
* @param namedStyle a localized named style, i.e. "Fett", "Kursiv", etc
* @returns The english named style
* @note added in QGIS 2.12
* @see translateNamedStyle
*/
static QString untranslateNamedStyle( const QString& namedStyle );

};
@@ -117,12 +117,16 @@ class CORE_EXPORT QgsFontUtils
/**Returns the localized named style of a font, if such a translation is available.
* @param namedStyle a named style, i.e. "Bold", "Italic", etc
* @returns The localized named style
* @note added in QGIS 2.12
* @see untranslateNamedStyle
*/
static QString translateNamedStyle( const QString& namedStyle );

/**Returns the english named style of a font, if possible.
* @param namedStyle a localized named style, i.e. "Fett", "Kursiv", etc
* @returns The english named style
* @note added in QGIS 2.12
* @see translateNamedStyle
*/
static QString untranslateNamedStyle( const QString& namedStyle );
};

0 comments on commit e4d0d27

Please sign in to comment.
You can’t perform that action at this time.