aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-22 20:00:55 +0200
committerMattias Andrée <maandree@kth.se>2022-07-22 20:00:55 +0200
commit92a567f35dfa8c085274801c847c6fb370cf7196 (patch)
tree319d018d7ab3eec2cde39241c0b3afa17e940c68
parentAdd default fonts (diff)
downloadlibfonts-92a567f35dfa8c085274801c847c6fb370cf7196.tar.gz
libfonts-92a567f35dfa8c085274801c847c6fb370cf7196.tar.bz2
libfonts-92a567f35dfa8c085274801c847c6fb370cf7196.tar.xz
Add specifications to todos
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libfonts.h41
1 files changed, 32 insertions, 9 deletions
diff --git a/libfonts.h b/libfonts.h
index 5cf2c83..f356e58 100644
--- a/libfonts.h
+++ b/libfonts.h
@@ -542,17 +542,17 @@ struct libfonts_font_description {
*/
ssize_t libfonts_get_default_font(enum libfonts_default_font, char *, size_t);
/* TODO implement libfonts_get_default_font
- *
+ *
* /etc/libfonts/default-fonts.conf
- *
- * sans-serif = $FONTNAME
- * serif = $FONTNAME
- * monospace = $FONTNAME
- *
+ *
+ * sans-serif = $FONTNAME
+ * serif = $FONTNAME
+ * monospace = $FONTNAME
+ *
* fallback, look in /etc/libfonts/default-fonts/sans-serif/
* /etc/libfonts/default-fonts/serif/
* /etc/libfonts/default-fonts/monospace/
- *
+ *
* as a last resort look around for some
* font that matches the specification as
* well as possible
@@ -653,7 +653,24 @@ int libfonts_do_decoded_font_descriptions_match(const struct libfonts_font_descr
* -1 on failure
*/
int libfonts_get_default_rendering_settings(struct libfonts_rendering_settings *);
-/* TODO implement libfonts_get_default_rendering_settings */
+/* TODO implement libfonts_get_default_rendering_settings
+ *
+ * /etc/libfonts/default-rendering.conf
+ *
+ * dpi-x = $dpi_x (default = 96)
+ * dpi-y = $dpi_y (default = 96)
+ * ref-width = $reference_width (default = 0)
+ * ref-height = $reference_height (default = 0)
+ * subpixel-order = $subpixel_order (default = LIBFONTS_SUBPIXEL_ORDER_UNKNOWN)
+ * greyscale-min = $min_dpsqi_for_greyscale (default = 0)
+ * subpixel-min = $min_dpsqi_for_subpixel (default = 0)
+ * h-grey-text-aa = $horizontal_grey_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ * v-grey-text-aa = $vertical_grey_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ * d-grey-text-aa = $diagonal_grey_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ * h-coloured-text-aa = $horizontal_colour_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ * v-coloured-text-aa = $vertical_colour_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ * d-coloured-text-aa = $diagonal_colour_text_antialiasing (default = LIBFONTS_ANTIALIASING_GREYSCALE)
+ */
/**
* Get rendering settings specified for a specific output device
@@ -665,7 +682,13 @@ int libfonts_get_default_rendering_settings(struct libfonts_rendering_settings *
* -1 on failure
*/
int libfonts_get_output_rendering_settings(struct libfonts_rendering_settings *, const char *);
-/* TODO implement libfonts_get_output_rendering_settings */
+/* TODO implement libfonts_get_output_rendering_settings
+ *
+ * /etc/libfonts/output-rendering.conf
+ *
+ * [$NAME]
+ * $SETTINGS
+ */
/**