Hello!

The following patch allows users to provide custom fonts via
~/.e16/fonts/

This patch is already used for years in Gentoo and it would be nice
to have it upstream. I use it for user-side theme modification
(winter in my case), because my eyes prefer larger fonts :)

Proposed patch is made on top of current e16 git HEAD, though it
alsa applies well on 1.0.22.

Best regards,
Andrew Savchenko
Support user fonts

Allow users to override fonts via ~/.e16/fonts/

Signed-off-by: Andrew Savchenko <[email protected]>
---
 src/ttfont.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ttfont.c b/src/ttfont.c
index 3d928ab3..b0741d2d 100644
--- a/src/ttfont.c
+++ b/src/ttfont.c
@@ -46,6 +46,8 @@ EFonts_Init(void)
    imlib_add_path_to_font_path(s);
    Esnprintf(s, sizeof(s), "%s/fonts", EDirRoot());
    imlib_add_path_to_font_path(s);
+   Esnprintf(s, sizeof(s), "%s/fonts", Mode.conf.dir);
+   imlib_add_path_to_font_path(s);
 #endif
 }
 
-- 
2.24.0

Attachment: pgpI_3I1fUSt8.pgp
Description: PGP signature

_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to