Skip to content

Instantly share code, notes, and snippets.

View ryuanlu's full-sized avatar

Ruei-Yuan Lu ryuanlu

View GitHub Profile
@ryuanlu
ryuanlu / fonts.conf
Created January 3, 2016 04:53
fontconfig example
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="hinting" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="rgba" mode="assign"><const>unknown</const></edit>
<edit name="lcdfilter" mode="assign"><const>none</const></edit>
</match>
@ryuanlu
ryuanlu / Makefile
Created January 13, 2019 11:55
Capture DRM framebuffer to file through OpenGL ES
RESOURCES:=fb.vert fb.frag
RESOURCE_SOURCES:=$(RESOURCES:%=%.c)
KMSGRAB_EGL_SOURCES:=kmsgrab-egl.c
KMSGRAB_EGL_PKG_CONFIG_PACKAGES:=egl gl libdrm gbm
KMSGRAB_EGL_CFLAGS:=-Wall $(shell pkg-config --cflags $(KMSGRAB_EGL_PKG_CONFIG_PACKAGES))
KMSGRAB_EGL_LDFLAGS:=$(shell pkg-config --libs $(KMSGRAB_EGL_PKG_CONFIG_PACKAGES))
KMSGRAB_EGL_BINARY:=kmsgrab-egl
.SUFFIXES: