summaryrefslogtreecommitdiff
path: root/src/entry_backend
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-21 19:14:47 +0100
committerPhil Jones <philj56@gmail.com>2022-06-21 19:14:47 +0100
commit25b2c9f895fd91fb556809ce513d3681ad279938 (patch)
tree6fa7595308fb26e2e7d61bba95836be496b7557b /src/entry_backend
parent54e90f75203bbf40ec6ac6dd09227e2c6f97cc62 (diff)
Add config file handling.
Single letter style arguments have been removed.
Diffstat (limited to 'src/entry_backend')
-rw-r--r--src/entry_backend/harfbuzz.c4
-rw-r--r--src/entry_backend/pango.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/entry_backend/harfbuzz.c b/src/entry_backend/harfbuzz.c
index f2e2d26..dc479d3 100644
--- a/src/entry_backend/harfbuzz.c
+++ b/src/entry_backend/harfbuzz.c
@@ -1,7 +1,6 @@
#include <cairo/cairo.h>
#include <harfbuzz/hb-ft.h>
#include <math.h>
-#include <wchar.h>
#include "harfbuzz.h"
#include "../entry.h"
#include "../log.h"
@@ -149,7 +148,7 @@ void entry_backend_init(
cairo_set_font_face(cr, entry->backend.cairo_face);
cairo_set_font_size(cr, entry->font_size * PT_TO_DPI);
cairo_font_options_t *opts = cairo_font_options_create();
- cairo_font_options_set_hint_style(opts, CAIRO_HINT_STYLE_NONE);
+ //cairo_font_options_set_hint_style(opts, CAIRO_HINT_STYLE_NONE);
cairo_set_font_options(cr, opts);
@@ -186,6 +185,7 @@ void entry_backend_destroy(struct entry *entry)
{
hb_buffer_destroy(entry->backend.hb_buffer);
hb_font_destroy(entry->backend.hb_font);
+ cairo_font_face_destroy(entry->backend.cairo_face);
FT_Done_Face(entry->backend.ft_face);
FT_Done_FreeType(entry->backend.ft_library);
}
diff --git a/src/entry_backend/pango.c b/src/entry_backend/pango.c
index d063147..d5dc8b4 100644
--- a/src/entry_backend/pango.c
+++ b/src/entry_backend/pango.c
@@ -2,7 +2,6 @@
#include <glib.h>
#include <pango/pangocairo.h>
#include <pango/pango.h>
-#include <wchar.h>
#include "../entry.h"
#include "../log.h"
#include "../nelem.h"
@@ -16,6 +15,7 @@ void entry_backend_init(struct entry *entry, uint32_t *width, uint32_t *height,
PangoContext *context = pango_cairo_create_context(cr);
log_debug("Creating Pango font description.\n");
+ log_debug("%s\n", entry->font_name);
PangoFontDescription *font_description =
pango_font_description_from_string(entry->font_name);
pango_font_description_set_size(