temp: freetype

This commit is contained in:
41666 2024-05-08 20:28:18 -04:00
parent 21cc6d1df5
commit 24c95daf2a
3 changed files with 29 additions and 0 deletions

View file

@ -1,2 +1,3 @@
{ pkgs ? (import ../nixpkgs.nix) { }, ... }: rec { { pkgs ? (import ../nixpkgs.nix) { }, ... }: rec {
freetype-triangular-oled = import ./freetype-triangular-oled;
} }

View file

@ -0,0 +1,5 @@
{ pkgs, ...}: pkgs.freetype.overrideAttrs(final: prev: {
patches = prev.patches ++ [
./triangular-oled.patch
];
})

View file

@ -0,0 +1,23 @@
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c
index f0acc1ea4..5f163505a 100644
--- a/src/smooth/ftsmooth.c
+++ b/src/smooth/ftsmooth.c
@@ -95,12 +95,12 @@
/* set up default subpixel geometry for striped RGB panels. */
- sub[0].x = -21;
- sub[0].y = 0;
- sub[1].x = 0;
- sub[1].y = 0;
- sub[2].x = 21;
- sub[2].y = 0;
+ sub[0].x = -18;
+ sub[0].y = -11;
+ sub[1].x = 2;
+ sub[1].y = 22;
+ sub[2].x = 16;
+ sub[2].y = -11;
render->clazz->raster_class->raster_reset( render->raster, NULL, 0 );