mirror of
https://github.com/herizon1054/openpilot.git
synced 2026-04-06 11:04:02 +08:00
25 lines
527 B
Bash
25 lines
527 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
cd $DIR
|
|
|
|
if [ ! -d icons/ ]; then
|
|
git clone https://github.com/twbs/icons/
|
|
fi
|
|
|
|
cd icons
|
|
git fetch --all
|
|
git checkout d5aa187483a1b0b186f87adcfa8576350d970d98
|
|
cp bootstrap-icons.svg ../
|
|
|
|
# Convert WOFF → TTF for imgui (imgui only reads TTF/OTF)
|
|
python3 -c "
|
|
from fontTools.ttLib import TTFont
|
|
import io
|
|
f = TTFont('font/fonts/bootstrap-icons.woff')
|
|
f.flavor = None
|
|
f.save('../bootstrap-icons.ttf')
|
|
print('bootstrap-icons.ttf written')
|
|
"
|