-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
373 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
# How to add a new font? | ||
|
||
1. Copy font files to afterwriting-labs/js/fonts/source/FolderWithMyFonts | ||
2. Generate JSONP file with fonts using: | ||
cd afterwriting-labs/js/fonts | ||
node fonts-converter.js -r source/FolderWithMyFonts/MyFont-Regular.ttf -b source/FolderWithMyFonts/MyFont-Bold.ttf -i source/FolderWithMyFonts/MyFont-Italic.ttf -x source/FolderWithMyFonts/MyFont-Bold-Italic.ttf -o my-font.js | ||
3. Make font available for loading in: afterwriting-labs/js/utils/fonts.js | ||
4. Make font embedded in node.js: afterwriting-labs/js/utils/fonts-node.js | ||
5. Make new font available in settings. Add font_family entry in: afterwriting-labs/js/plugin/settings/model/settings-config-provider.js | ||
|
||
# Sources: | ||
|
||
## courier-prime.js | ||
|
||
Courier Prime: https://quoteunquoteapps.com/courierprime/downloads/courier-prime.zip | ||
|
||
node fonts-converter.js -r source\Courier-Prime\Courier-Prime.ttf -b source\Courier-Prime\Courier-Prime-Bold.ttf -i source\Courier-Prime\Courier-Prime-Italic.ttf -x source\Courier-Prime\Courier-Prime-Bold-Italic.ttf -o courier-prime.js | ||
node ../../fonts-converter.js -r source/Courier-Prime/Courier-Prime.ttf -b source/Courier-Prime/Courier-Prime-Bold.ttf -i source/Courier-Prime/Courier-Prime-Italic.ttf -x source/Courier-Prime/Courier-Prime-Bold-Italic.ttf -o courier-prime.js | ||
|
||
## courier-prime-cyrillic | ||
Courier Prime Cyrillic: http://dimkanovikov.pro/courierprime/courierprime.zip | ||
|
||
node fonts-converter.js -r source\Courier-Prime-Cyrillic\Courier-Prime.ttf -b source\Courier-Prime-Cyrillic\Courier-Prime-Bold.ttf -i source\Courier-Prime-Cyrillic\Courier-Prime-Italic.ttf -x source\Courier-Prime-Cyrillic\Courier-Prime-Bold-Italic.ttf -o courier-prime-cyrillic.js | ||
|
||
# noto-jp.js | ||
|
||
Noto Sans CJK JP: https://www.google.com/get/noto/#sans-jpan | ||
|
||
node fonts-converter.js -r source\NotoSansCJKjp\NotoSansMonoCJKjp-Regular.otf -b source\NotoSansMonoCJKjp\NotoSansCJKjp-Bold.otf -o noto-jp.js | ||
|
||
# noto-sc.js | ||
node ../../fonts-converter.js -r source/Courier-Prime-Cyrillic/Courier-Prime.ttf -b source/Courier-Prime-Cyrillic/Courier-Prime-Bold.ttf -i source/Courier-Prime-Cyrillic/Courier-Prime-Italic.ttf -x source/Courier-Prime-Cyrillic/Courier-Prime-Bold-Italic.ttf -o courier-prime-cyrillic.js | ||
|
||
Noto Sans CJK SC: https://www.google.com/get/noto/#sans-hans | ||
# kosugi | ||
|
||
node fonts-converter.js -r source\NotoSansCJKsc\NotoSansMonoCJKsc-Regular.otf -b source\NotoSansCJKsc\NotoSansMonoCJKsc-Bold.otf -o noto-sc.js | ||
node ../../tools/fonts-converter.js -r source/Kosugi/Kosugi-Regular.otf -o kosugi.js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.