aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libfonts.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/libfonts.h b/libfonts.h
index bdf9163..2c7202a 100644
--- a/libfonts.h
+++ b/libfonts.h
@@ -12,6 +12,12 @@
#define LIBFONTS_CONTEXT_VERSION 0
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wpadded"
+#endif
+
+
/**
* Style-based default fonts
*/
@@ -1243,12 +1249,6 @@ struct libfonts_rendering_settings {
uint32_t reference_height;
/**
- * The output device's physical subpixel order,
- * when it is not rotated
- */
- enum libfonts_subpixel_order subpixel_order;
-
- /**
* If the product of the applicable pixel densities
* (horizontal and vertical) is less than this
* value, the antialiasing mode shall downgrade
@@ -1268,6 +1268,12 @@ struct libfonts_rendering_settings {
double min_dpsqi_for_subpixel;
/**
+ * The output device's physical subpixel order,
+ * when it is not rotated
+ */
+ enum libfonts_subpixel_order subpixel_order;
+
+ /**
* Antialiasing mode for horizontal (on unrotated output), grey text
*/
enum libfonts_antialiasing horizontal_grey_text_antialiasing;
@@ -1343,14 +1349,14 @@ struct libfonts_output {
int output_screen;
/**
- * Transformation that is applied to the output
+ * The output's subpixel order, disregarding applied rotation
*/
- struct libfonts_transformation output_transformation;
+ enum libfonts_subpixel_order unrotated_subpixel_order;
/**
- * The output's subpixel order, disregarding applied rotation
+ * Transformation that is applied to the output
*/
- enum libfonts_subpixel_order unrotated_subpixel_order;
+ struct libfonts_transformation output_transformation;
/**
* The output's horizontal pixel density (pixels per inch),
@@ -1619,6 +1625,11 @@ struct libfonts_context {
};
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
+
+
/**
* `NULL`-terminated list of environment variables
* that affect the execution of the library