mirror of
https://github.com/kiliman/operator-mono-lig.git
synced 2026-08-12 02:10:52 +02:00
🔨 Make italics-hack the default option with ability to turn it off
This commit is contained in:
@@ -4,7 +4,7 @@ setlocal
|
||||
if not exist .\build\* mkdir build
|
||||
|
||||
set flags=
|
||||
if "%1"=="--italics-hack" (
|
||||
if "%1"=="--italics-hack-off" (
|
||||
set flags=%1
|
||||
shift
|
||||
)
|
||||
|
||||
@@ -24,7 +24,7 @@ build_font() {
|
||||
}
|
||||
|
||||
flags=
|
||||
if [ "$1" = "--italics-hack" ]
|
||||
if [ "$1" = "--italics-hack-off" ]
|
||||
then
|
||||
flags=$1
|
||||
shift
|
||||
|
||||
@@ -21,7 +21,7 @@ let italicsHack = false;
|
||||
function main() {
|
||||
fontName = process.argv[2];
|
||||
italicsHack =
|
||||
process.argv[3] === '--italics-hack' && fontName.includes('Italic');
|
||||
fontName.includes('Italic') && process.argv[3] !== '--italics-hack-off';
|
||||
|
||||
ligFontName = fontName.split('-').join('Lig-');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user