Skip to content

Commit

Permalink
[Others] 軽微変更
Browse files Browse the repository at this point in the history
  • Loading branch information
omonomo committed Jan 15, 2024
1 parent bce317f commit f7db3b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions font_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ do
;;
esac
done
echo

shift `expr $OPTIND - 1`

# Get input fonts
Expand Down
15 changes: 8 additions & 7 deletions table_modificator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ leaving_tmp_flag="false" # 一時ファイル残す
cmap_flag="true" # cmapを編集するか
gsub_flag="true" # GSUBを編集するか
other_flag="true" # その他を編集するか
reuse_list_flag="false" # 生成済みのリストを使かうか
reuse_list_flag="false" # 生成済みのリストを使うか

calt_insert_flag="true" # caltテーブルを挿入するか
patch_only_flag="false" # caltテーブルのみ編集
Expand Down Expand Up @@ -67,14 +67,14 @@ table_modificator_help()
echo " -h Display this information"
echo " -x Cleaning temporary files" # 一時作成ファイルの消去のみ
echo " -l Leave (do NOT remove) temporary files"
echo " -r Reuse an existing list"
echo " -N string Set fontfamily (\"string\")"
echo " -m Disable edit cmap tables"
echo " -g Disable edit GSUB tables"
echo " -t Disable edit other tables"
echo " -C End just before editing calt feature"
echo " -p Run calt patch only"
echo " -b Make calt settings for basic Latin characters only"
echo " -r Reuse an existing list"
exit 0
}

Expand All @@ -83,7 +83,7 @@ echo "= Font tables Modificator ="
echo

# Get options
while getopts hxlN:mgtCpbr OPT
while getopts hxlrN:mgtCpb OPT
do
case "${OPT}" in
"h" )
Expand All @@ -100,6 +100,10 @@ do
echo "Option: Leave (do NOT remove) temporary files"
leaving_tmp_flag="true"
;;
"r" )
echo "Option: Reuse an existing list"
reuse_list_flag="true"
;;
"N" )
echo "Option: Set fontfamily: ${OPTARG}"
font_familyname=`echo $OPTARG | tr -d ' '`
Expand Down Expand Up @@ -140,15 +144,12 @@ do
echo "Option: Make calt settings for basic Latin characters only"
basic_only_flag="true"
;;
"r" )
echo "Option: Reuse an existing list"
reuse_list_flag="true"
;;
* )
exit 1
;;
esac
done
echo

# ttxファイルを削除、パッチのみの場合フォントをリネームして再利用
rm -f ${font_familyname}*.ttx ${font_familyname}*.ttx.bak
Expand Down
1 change: 1 addition & 0 deletions uvs_table_maker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ do
;;
esac
done
echo

toFontName="${font_familyname}-Regular" # 生成フォント名

Expand Down

0 comments on commit f7db3b3

Please sign in to comment.