Skip to content
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

v3 #7

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

v3 #7

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
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ trim_trailing_whitespace = true

[*.{md,mdx}]
trim_trailing_whitespace = false

[*.bdf]
charset = utf-8
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- ubuntu-20.04
- windows-latest
python: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
python: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.9'
uses: codecov/codecov-action@v5
if: github.event_name == 'push' && matrix.os == 'ubuntu-20.04' && matrix.python == '3.13'
with:
file: ./coverage.xml
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

8 changes: 6 additions & 2 deletions src/bdfparser/bdfparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def __parse_headers(self):

while 1:

line = next(self.__f)
line = next(self.__f).strip()
while len(line) == 0:
line = next(self.__f).strip()
kvlist = line.split(None, 1)
l = len(kvlist)

Expand Down Expand Up @@ -203,7 +205,9 @@ def __parse_props(self):

while 1:

line = next(self.__f)
line = next(self.__f).strip()
while len(line) == 0:
line = next(self.__f).strip()
kvlist = line.split(None, 1)
l = len(kvlist)

Expand Down
21 changes: 19 additions & 2 deletions tests/fonts/unifont-13.0.04-for-test.bdf
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
STARTFONT 2.1


STARTFONT 2.1

FONT -gnu-Unifont-Medium-R-Normal-Sans-16-160-75-75-c-80-iso10646-1
SIZE 16 75 75
FONTBOUNDINGBOX 16 16 0 -2
COMMENT "Generated by fontforge, http://fontforge.sourceforge.net"
COMMENT "(C)Copyright"
STARTPROPERTIES 24
COPYRIGHT "Copyright (C) 1998-2020 Roman Czyborra, Paul Hardy, Qianqian Fang, Andrew Miller, Johnnie Weaver, David Corbett, Rebecca Bettencourt, et al. License: SIL Open Font License version 1.1 and GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> with the GNU Font Embedding Exception."


FONT_VERSION "13.0.04"
FONT_TYPE "Bitmap"
FOUNDRY "GNU"
Expand All @@ -30,7 +35,13 @@ FONT_ASCENT 14
FONT_DESCENT 2
DEFAULT_CHAR 65533
ENDPROPERTIES
CHARS 849






CHARS 849
STARTCHAR U+0001
ENCODING 1
SWIDTH 1000 0
Expand Down Expand Up @@ -19558,4 +19569,10 @@ BITMAP
4A
4A
ENDCHAR





ENDFONT

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist = py{35,36,37,38,39}
envlist = py35,py36,py37,py38,py39,py310,py311,py312,py313
minversion = 3.3.0
isolated_build = true
isolated_build = True

[testenv]
deps =
Expand Down
1 change: 0 additions & 1 deletion vscode.env

This file was deleted.

Loading