Skip to content

Commit

Permalink
fixed nun misalignment
Browse files Browse the repository at this point in the history
  • Loading branch information
SargisYonan committed Jul 21, 2024
1 parent e0c3a9b commit 7e1b4d2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 24 deletions.
32 changes: 9 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GLYPH_FILES := $(foreach dir, $(OUTPUT_DIRS), $(shell find $(dir) -name '*.glyph
SAMPLE_DIR := samples
SAMPLE_TEXT := "ܥܠ ܐܪܥܐ ܫܠܡܐ ܘܣܒܪܐ ܛܒܐ ܠܒܪܢܫ̈ܐ"

all: build move generate-png install test
all: build generate-png install test

venv/created: requirements.txt
python3 -m venv venv
Expand All @@ -23,29 +23,17 @@ open:
fi \
done

move:
mkdir -p $(FONTS_DIR)
for ext in $(FONT_EXTENSIONS); do \
for dir in $(OUTPUT_DIRS); do \
for file in $$dir/*.$$ext; do \
if [ -f "$$file" ]; then \
mv "$$file" $(FONTS_DIR)/; \
fi; \
done; \
done; \
done

build:
for file in $(GLYPH_FILES); do \
if [ -f "$$file" ]; then \
osascript scripts/exportfont.scpt "$$file"; \
fi \
done

install: move
install: build
./install.command

test: venv move
test: venv
. venv/bin/activate; \
for file in $(FONTS_DIR)/*.otf; do \
if [ -f "$$file" ]; then \
Expand All @@ -63,17 +51,15 @@ clean:
done; \
done; \
rm -rf venv; \
rm -rf $(FONTS_DIR)
rm -rf $(FONTS_DIR)/*
rm -rf samples/*

# Target to generate PNG with Syriac sample text using Python
generate-png: move venv
@for file in $(FONTS_DIR)/*.otf; do \
if [ -f "$$file" ]; then \
generate-png: venv
. venv/bin/activate && \
for file in $(FONTS_DIR)/*.otf; do \
font=$$(basename "$$file" .otf); \
python3 scripts/render_text.py "$$file" '$(SAMPLE_TEXT)' "$(SAMPLE_DIR)/$$font.png"; \
echo "Generated PNG with Syriac sample text using font: $$file"; \
fi; \
python3 scripts/render_text.py "$$file" $(SAMPLE_TEXT) "$(SAMPLE_DIR)/$$font.png"; \
done

.PHONY: clean test install build move open venv all generate-svg generate-png
.PHONY: clean test install build open venv all generate-svg generate-png
Binary file modified fonts/NohadraSyriac-Amedia.otf
Binary file not shown.
Binary file modified fonts/NohadraSyriac-Sapna.otf
Binary file not shown.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fontbakery
arabic-reshaper
python-bidi
python-bidi==0.4.2
Pillow
Binary file modified samples/NohadraSyriac-Amedia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified samples/NohadraSyriac-Sapna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7e1b4d2

Please sign in to comment.