Skip to content

Commit

Permalink
[New] サブフォルダのフォントを集めるスクリプト
Browse files Browse the repository at this point in the history
  • Loading branch information
omonomo committed Dec 10, 2023
1 parent 60fec36 commit be6e192
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
24 changes: 24 additions & 0 deletions fontsCollector/collectFonts.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off
:: フォントを集合させるプログラム

set FAMILY=Cyroit

set SUFFIX0=DG
set SUFFIX1=DS
set SUFFIX2=FX
set SUFFIX3=HB
set SUFFIX4=SP
set SUFFIX5=TM
set SUFFIX6=TS

for /f "usebackq delims== tokens=1,2" %%a in (`set SUFFIX`) do (
move .\%%b\%FAMILY%%%b-Bold.ttf .\
move .\%%b\%FAMILY%%%b-BoldOblique.ttf .\
move .\%%b\%FAMILY%%%b-Regular.ttf .\
move .\%%b\%FAMILY%%%b-Oblique.ttf .\

rd /q %%b
)

:: del /q OFL.txt
:: del /q README.md
19 changes: 19 additions & 0 deletions fontsCollector/collectFonts.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# フォントを集合させるプログラム

sh_dir=$(cd $(dirname $0) && pwd)
font_familyname="Cyroit"
font_familyname_suffix=("DG" "DS" "FX" "HB" "SP" "TM" "TS")

for S in ${font_familyname_suffix[@]}; do
mv ${sh_dir}/${S}/${font_familyname}${S}-Bold.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-BoldOblique.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-Oblique.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-Regular.ttf ${sh_dir}

rm -rf ${sh_dir}/${S}
done

#rm -f OFL.txt
#rm -f README.md
19 changes: 19 additions & 0 deletions fontsCollector/collectFonts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# フォントを集合させるプログラム

sh_dir=$(cd $(dirname $0) && pwd)
font_familyname="Cyroit"
font_familyname_suffix=("DG" "DS" "FX" "HB" "SP" "TM" "TS")

for S in ${font_familyname_suffix[@]}; do
mv ${sh_dir}/${S}/${font_familyname}${S}-Bold.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-BoldOblique.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-Oblique.ttf ${sh_dir}/
mv ${sh_dir}/${S}/${font_familyname}${S}-Regular.ttf ${sh_dir}

rm -rf ${sh_dir}/${S}
done

#rm -f OFL.txt
#rm -f README.md

0 comments on commit be6e192

Please sign in to comment.