-
Notifications
You must be signed in to change notification settings - Fork 169
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
314 changed files
with
13,657 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,42 +14,6 @@ matrix: | |
# Do not build feature branch with open Pull Requests | ||
skip_branch_with_pr: true | ||
|
||
# scripts that run after cloning repository | ||
install: | ||
- pip install flake8 cpplint | ||
|
||
# scripts to run before build | ||
before_build: | ||
- flake8 setup.py | ||
- flake8 tests\*.py | ||
- flake8 python\afdko\buildcff2vf.py | ||
- flake8 python\afdko\buildmasterotfs.py | ||
- flake8 python\afdko\checkoutlinesufo.py | ||
- flake8 python\afdko\convertfonttocid.py | ||
- flake8 python\afdko\fdkutils.py | ||
- flake8 python\afdko\makeinstancesufo.py | ||
- flake8 python\afdko\makeotf.py | ||
- flake8 python\afdko\otf2ttf.py | ||
- flake8 python\afdko\otfpdf.py | ||
- flake8 python\afdko\pdfmetrics.py | ||
- flake8 python\afdko\ttfcomponentizer.py | ||
- flake8 python\afdko\ttxn.py | ||
- flake8 python\afdko\ufotools.py | ||
- cpplint --recursive --quiet c\autohint | ||
- cpplint --recursive --quiet c\detype1 | ||
- cpplint --recursive --quiet c\makeotf\makeotf_lib\source | ||
- cpplint --recursive --quiet c\makeotf\makeotf_lib\api | ||
- cpplint --recursive --quiet c\makeotf\makeotf_lib\resource | ||
- cpplint --recursive --quiet c\makeotf\source | ||
- cpplint --recursive --quiet c\mergefonts | ||
- cpplint --recursive --quiet c\public | ||
- cpplint --recursive --quiet c\rotatefont | ||
- cpplint --recursive --quiet c\sfntdiff | ||
- cpplint --recursive --quiet c\sfntedit | ||
- cpplint --recursive --quiet c\spot | ||
- cpplint --recursive --quiet c\tx | ||
- cpplint --recursive --quiet c\type1 | ||
|
||
# to run your custom scripts instead of automatic MSBuild | ||
build_script: | ||
# our setup.py requires 'wheel', which may not be already installed | ||
|
@@ -80,3 +44,11 @@ deploy: | |
prerelease: true | ||
on: | ||
appveyor_repo_tag: true | ||
|
||
notifications: | ||
- provider: Email | ||
to: | ||
- [email protected] | ||
on_build_success: false | ||
on_build_failure: true | ||
on_build_status_changed: false |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# activate virtual environment | ||
source venv/bin/activate | ||
# check source files | ||
flake8 setup.py | ||
flake8 tests/*.py | ||
pushd python/afdko | ||
flake8 buildcff2vf.py | ||
flake8 buildmasterotfs.py | ||
flake8 checkoutlinesufo.py | ||
flake8 convertfonttocid.py | ||
flake8 fdkutils.py | ||
flake8 makeinstancesufo.py | ||
flake8 makeotf.py | ||
flake8 otf2ttf.py | ||
flake8 otfpdf.py | ||
flake8 pdfmetrics.py | ||
flake8 ttfcomponentizer.py | ||
flake8 ttxn.py | ||
flake8 ufotools.py | ||
popd | ||
cpplint --recursive --quiet c/detype1 | ||
cpplint --recursive --quiet c/makeotf/makeotf_lib/source | ||
cpplint --recursive --quiet c/makeotf/makeotf_lib/api | ||
cpplint --recursive --quiet c/makeotf/makeotf_lib/resource | ||
cpplint --recursive --quiet c/makeotf/source | ||
cpplint --recursive --quiet c/mergefonts | ||
cpplint --recursive --quiet c/public | ||
cpplint --recursive --quiet c/rotatefont | ||
cpplint --recursive --quiet c/sfntdiff | ||
cpplint --recursive --quiet c/sfntedit | ||
cpplint --recursive --quiet c/spot | ||
cpplint --recursive --quiet c/tx | ||
cpplint --recursive --quiet c/type1 |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 2.1 | ||
|
||
commands: | ||
setup_venv: | ||
description: Setup the virtual environment | ||
steps: | ||
- run: bash .circleci/setup_venv.sh | ||
|
||
check_source_code: | ||
description: Run flake8 and cpplint | ||
steps: | ||
- run: bash .circleci/check_source_code.sh | ||
|
||
build_and_test: | ||
description: Build wheel and run tests via cibuildwheel | ||
steps: | ||
- run: | ||
command: | | ||
source venv/bin/activate | ||
cibuildwheel --output-dir wheelhouse | ||
jobs: | ||
linux-python3: | ||
docker: | ||
- image: circleci/python:3.6 | ||
environment: | ||
CIBW_SKIP: cp27-* cp34-* cp35-* cp37-* *i686 | ||
CIBW_TEST_REQUIRES_LINUX: pytest subprocess32 | ||
CIBW_TEST_COMMAND_LINUX: cd {project} && pytest -v && pip uninstall --yes afdko | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- setup_venv | ||
- check_source_code | ||
- build_and_test | ||
|
||
workflows: | ||
version: 2.1 | ||
all-tests: | ||
jobs: | ||
- linux-python3 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# create virtual environment | ||
python -m venv venv | ||
# activate virtual environment | ||
source venv/bin/activate | ||
# install and update dependencies | ||
pip install -U -q pip setuptools wheel flake8 cpplint | ||
pip install git+https://github.com/adobe-type-tools/cibuildwheel | ||
# print versions | ||
python --version | ||
pip --version | ||
pip list |
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,13 +1,13 @@ | ||
"UFO mode converts an abstract font to a UFO 2 font.\n", | ||
|
||
"Note that it is NOT a full UFO writer. It writes only the information from\n", | ||
"the Postscript font data. If the source is an OTF or TTF font, it will not copy\n", | ||
"any of the meta data from outside the font program table. Also, if the destination\n", | ||
"is an already existing UFO font, tx will overwrite it with the new data:\n", | ||
"it will not merge the new font data with the old.\n", | ||
"Note that it is NOT a full UFO writer. It writes only\n", | ||
"the information from the Postscript font data. If the source\n", | ||
"is an OTF or TTF font, it will NOT copy any of the meta data\n", | ||
"from outside the font program table. Also, if the destination\n", | ||
"is an already existing UFO font, tx will fail.\n", | ||
"\n", | ||
"When reading from a UFO font, tx will prefer GLIF files in the layer\n", | ||
"'glyphs.com.adobe.type.processedGlyphs'. You can select another preferred\n", | ||
"layer with the option '-altLayer <layer name>'. Use 'None' for the layer name\n", | ||
"in order to have tx ignore the preferred layer and read GLIF files only from\n", | ||
"the default layer.\n", | ||
"When reading from a UFO font, tx will prefer GLIF files in the\n", | ||
"layer 'com.adobe.type.processedglyphs'. You can select another\n", | ||
"layer with the option '-altLayer <layer name>'. Use 'None' for\n", | ||
"the layer name in order to have tx ignore the preferred layer\n", | ||
"and read GLIF files from the foreground layer.\n", |
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
Oops, something went wrong.