Skip to content

v1.0.1 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ target/
# Project files
tests/runner.py
tests/profiler.py

# VS Code files
.vscode/*
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### v1.0.1

- removed unused variables in commands module
- add docs/LICENSE.md to release archives and Python wheels
- remove Pipfile and Pipfile.lock from version control

### v1.0.0

- initial stable/production release
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include docs/LICENSE
include docs/LICENSE.md
include docs/README.rst
21 changes: 0 additions & 21 deletions Pipfile

This file was deleted.

45 changes: 0 additions & 45 deletions Pipfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion docs/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Christopher Simpkins
Copyright (c) 2018 Christopher Simpkins

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
34 changes: 19 additions & 15 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,19 @@ Vertical Metrics Reporting
The following OpenType vertical metrics values and calculated values
derived from these data are displayed with the ``report`` sub-command:

- [OS/2] TypoAscender
- [OS/2] TypoDescender
- [OS/2] WinAscent
- [OS/2] WinDescent
- [OS/2] TypoLineGap
- [hhea] Ascent
- [hhea] Descent
- [hhea] lineGap
- [head] unitsPerEm
- [head] yMax
- [head] yMin
- [OS/2] TypoAscender
- [OS/2] TypoDescender
- [OS/2] WinAscent
- [OS/2] WinDescent
- [OS/2] TypoLineGap
- [OS/2] xHeight
- [OS/2] CapHeight
- [hhea] Ascent
- [hhea] Descent
- [hhea] lineGap
- [head] unitsPerEm
- [head] yMax
- [head] yMin

``report`` Sub-Command Usage
''''''''''''''''''''''''''''
Expand All @@ -138,13 +140,15 @@ Example Font Vertical Metrics Report
::

=== Hack-Regular.ttf ===
Version 2.020;DEV-03192016;
SHA1: 638f033cc1b6a21597359278bee62cf7e96557ff
Version 3.001; 379b3ad6d-dev
SHA1: 20d02edca75f2d23787e80161a64418598c850de

--- Metrics ---
[head] Units per Em: 2048
[head] yMax: 2001
[head] yMin: -573
[OS/2] CapHeight: 1493
[OS/2] xHeight: 1120
[OS/2] TypoAscender: 1556
[OS/2] TypoDescender: -492
[OS/2] WinAscent: 1901
Expand Down Expand Up @@ -323,8 +327,8 @@ Acknowledgments
font-line is built with the fantastic
`fontTools <https://github.com/behdad/fonttools>`__ Python library.

.. |Build Status| image:: https://travis-ci.org/source-foundry/font-line.svg?branch=master
:target: https://travis-ci.org/source-foundry/font-line
.. |Build Status| image:: https://semaphoreci.com/api/v1/sourcefoundry/font-line/branches/master/badge.svg
:target: https://semaphoreci.com/sourcefoundry/font-line
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/2s4725o5mxh2298c/branch/master?svg=true
:target: https://ci.appveyor.com/project/chrissimpkins/font-line/branch/master
.. |codecov.io| image:: https://codecov.io/github/source-foundry/font-line/coverage.svg?branch=master
Expand Down
4 changes: 2 additions & 2 deletions lib/fontline/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def get_font_report(fontpath):
os2_typo_linegap = tt['OS/2'].sTypoLineGap
try:
os2_x_height = tt['OS/2'].sxHeight
except AttributeError as e:
except AttributeError:
os2_x_height = "---- (OS/2 table does not contain sxHeight record)"
try:
os2_cap_height = tt['OS/2'].sCapHeight
except AttributeError as e:
except AttributeError:
os2_cap_height = "---- (OS/2 table does not contain sCapHeight record)"
hhea_ascent = tt['hhea'].ascent
hhea_descent = tt['hhea'].descent
Expand Down
2 changes: 1 addition & 1 deletion lib/fontline/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# ------------------------------------------------------------------------------
major_version = "1"
minor_version = "0"
patch_version = "0"
patch_version = "1"

# ------------------------------------------------------------------------------
# Help String
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[wheel]
universal = 1

[metadata]
license_file = docs/LICENSE.md
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py36
envlist = py27, py36, py37

[testenv]
commands =
Expand Down