Skip to content

fontconvert

Ray edited this page Jan 17, 2023 · 1 revision

Building fontconvert in MacOS

brew install freetype
brew --prefix freetype

Find libfreetype.dylib and freetype2 include path

Sample Makefile for fontconvert

all: fontconvert

CC     = gcc
CFLAGS = -Wall -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/include -I/opt/homebrew/Cellar/freetype/2.12.1/include/freetype2
LIBS   = /opt/homebrew/Cellar/freetype/2.12.1/lib/libfreetype.dylib

fontconvert: fontconvert.c
	$(CC) $(CFLAGS) $< $(LIBS) -o $@
	strip $@

clean:
	rm -f fontconvert
Clone this wiki locally