1
0
mirror of https://gitlab.com/MisterBiggs/bdfparse.git synced 2025-06-15 14:06:39 +00:00

init commit

This commit is contained in:
Anson 2019-07-12 16:47:01 -07:00
parent dcb2a1c9af
commit c6e0d407d7
4 changed files with 119393 additions and 0 deletions

172
.gitignore vendored Normal file
View File

@ -0,0 +1,172 @@
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
# Created by https://www.gitignore.io/api/visualstudiocode,windows,python
# Edit at https://www.gitignore.io/?templates=visualstudiocode,windows,python
ticker/*
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
bdf-to-numpy/
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
### VisualStudioCode ###
.vscode/*
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.gitignore.io/api/visualstudiocode,windows,python
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

119182
9x18.bdf Normal file

File diff suppressed because it is too large Load Diff

0
bdfparse.py Normal file
View File

39
notebook.py Normal file
View File

@ -0,0 +1,39 @@
#%%
import numpy as np
import matplotlib.pyplot as plt
#%%
hexs = [
0x00,
0x00,
0x00,
0x00,
0x18,
0x24,
0x24,
0x42,
0x42,
0x7E,
0x42,
0x42,
0x42,
0x42,
0x00,
0x00,
]
bbx = (8, 16, 0, -2)
#%%
rows = []
for row in range(0, bbx[1]):
rows.append(list(f"{hexs[row]:0>42b}")[-(bbx[0] + 1) : -1])
#%%
plt.imshow(np.array(rows, dtype=int))
plt.show()
#%%
np.array(rows, dtype=int)
#%%