r23768 by jghali - Declare public members in gtFont first

scribus-commit scribus-commit at lists.scribus.net
Mon May 11 14:36:38 UTC 2020


Author: jghali
Date: Mon May 11 14:36:38 2020
New Revision: 23768

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23768
Log:
Declare public members in gtFont first 

Modified:
    trunk/Scribus/scribus/gtfont.h

Modified: trunk/Scribus/scribus/gtfont.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23768&path=/trunk/Scribus/scribus/gtfont.h
==============================================================================
--- trunk/Scribus/scribus/gtfont.h	(original)
+++ trunk/Scribus/scribus/gtfont.h	Mon May 11 14:36:38 2020
@@ -90,42 +90,10 @@
 */
 class SCRIBUS_API gtFont
 {
-private:
-	int m_setflags {0};
-	QString m_name;
-	QString m_family;
-	QString m_weight;
-	QString m_slant;
-	QString m_width;
-	QString m_append;
-	int m_size {120};
-	bool m_fontEffects[FontEffectMAX];
-	QString m_color {"Black"};
-	int m_shade {100};
-	QString m_strokeColor {"Black"};
-	int m_strokeShade {100};
-	/* Width of a character in percentages to it's "real width" */
-	int m_hscale {1000};
-	int m_kerning {0};
-	bool m_useFullName {true};
-	int m_weightIndex {0};
-	int m_slantIndex {1};
-	int m_widthIndex {2};
-	int m_smallestIndex {-1};
-	int m_biggestIndex {-1};
-	int m_index {-1};
-	int m_tmpWeightIndex {-1};
-	int m_tmpSlantIndex {-1};
-	int m_tmpWidthIndex {-1};
-	void initArrays();
-	void parseName();
-	void parseWeight();
-	void parseSlant();
-	void parseWidth();
-	void parseFamily();
-	int find(const QString& where, const QString& what);
-
 public:
+	gtFont();
+	gtFont(const gtFont& f);
+	~gtFont();
 
 	typedef enum
 	{
@@ -182,9 +150,42 @@
 	void setHscale(int newHscale);
 	int getKerning();
 	void setKerning(int newKerning);
-	gtFont();
-	gtFont(const gtFont& f);
-	~gtFont();
+
+private:
+	int m_setflags {0};
+	QString m_name;
+	QString m_family;
+	QString m_weight;
+	QString m_slant;
+	QString m_width;
+	QString m_append;
+	int m_size {120};
+	bool m_fontEffects[FontEffectMAX];
+	QString m_color {"Black"};
+	int m_shade {100};
+	QString m_strokeColor {"Black"};
+	int m_strokeShade {100};
+	/* Width of a character in percentages to it's "real width" */
+	int m_hscale {1000};
+	int m_kerning {0};
+	bool m_useFullName {true};
+	int m_weightIndex {0};
+	int m_slantIndex {1};
+	int m_widthIndex {2};
+	int m_smallestIndex {-1};
+	int m_biggestIndex {-1};
+	int m_index {-1};
+	int m_tmpWeightIndex {-1};
+	int m_tmpSlantIndex {-1};
+	int m_tmpWidthIndex {-1};
+
+	void initArrays();
+	void parseName();
+	void parseWeight();
+	void parseSlant();
+	void parseWidth();
+	void parseFamily();
+	int find(const QString& where, const QString& what);
 };
 
 #endif // GTFONT_H




More information about the scribus-commit mailing list