diff --git a/tools/font/bdfconv/Makefile b/tools/font/bdfconv/Makefile index f48dbdfe..85bc6d08 100644 --- a/tools/font/bdfconv/Makefile +++ b/tools/font/bdfconv/Makefile @@ -193,6 +193,8 @@ falconded9: bdfconv convert bdf.tga -trim u8g2_font_falconded_mr.png ./bdfconv -v -f 1 -b 1 -a -m '32-99' falconded.bdf -o u8g2_font_falconded_hr.c -n u8g2_font_falconded_hr -d ../bdf/helvR12.bdf convert bdf.tga -trim u8g2_font_falconded_hr.png + ./bdfconv -v -f 1 -b 2 -a -m '32-65535' falconded.bdf -o u8g2_font_falconded_all.c -n u8g2_font_falconded_all -d ../bdf/helvR12.bdf + convert bdf.tga -trim u8g2_font_falconded_all.png analecta: bdfconv diff --git a/tools/font/build/copy_fnt_pic.sh b/tools/font/build/copy_fnt_pic.sh new file mode 100644 index 00000000..d1949451 --- /dev/null +++ b/tools/font/build/copy_fnt_pic.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +SOURCE_DIR=~/git/u8g2.wiki/fntpic +DEST_DIR=~/git/u8g2/tools/font/build + +# Create destination directory if it doesn't exist +# mkdir -p "$DEST_DIR" + +# Loop through all .png files in the source directory +find $SOURCE_DIR -type f -name "*te*.png" | while read -r src_file; do + # Get the relative path of the file from source directory + rel_path="${src_file#$SOURCE_DIR/}" + dest_file="$DEST_DIR/$rel_path" + + # If file doesn't exist in destination, or size has changed, copy it + if [ ! -f "$dest_file" ] || [ "$(stat -c %s "$src_file")" -ne "$(stat -c %s "$dest_file" 2>/dev/null)" ]; then + # mkdir -p "$(dirname "$dest_file")" # Ensure destination subdirectory exists + ls -al "$src_file" "$dest_file" + cp "$src_file" "$dest_file" + echo "Copied: $rel_path" + fi +done