-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit c71c2b7
Showing
44 changed files
with
5,832 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Language: Cpp | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortIfStatementsOnASingleLine: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BraceWrapping: | ||
AfterFunction: true | ||
BreakBeforeBraces: Custom | ||
ColumnLimit: 0 | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^<.*\.h>' | ||
Priority: 2 | ||
- Regex: '^<.*' | ||
Priority: 3 | ||
- Regex: '.*' | ||
Priority: 1 | ||
IndentCaseLabels: true | ||
IndentWidth: 4 | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: All | ||
PointerAlignment: Left | ||
SpaceAfterCStyleCast: true | ||
SpacesBeforeTrailingComments: 2 |
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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
tab_width = 8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,6 @@ | ||
*.cpp text | ||
*.h text | ||
*.txt text | ||
*.md text | ||
.* text | ||
*.png filter=lfs diff=lfs merge=lfs -text |
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,100 @@ | ||
name: Build and Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.*' | ||
|
||
permissions: | ||
packages: read | ||
contents: write | ||
|
||
jobs: | ||
create_release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
|
||
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
release_assets: | ||
name: Release Assets | ||
needs: create_release | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
build_type: [Release] | ||
cpp_compiler: [g++-13, cl] | ||
include: | ||
- os: windows-latest | ||
cpp_compiler: cl | ||
- os: ubuntu-latest | ||
cpp_compiler: g++-13 | ||
exclude: | ||
- os: windows-latest | ||
cpp_compiler: g++-13 | ||
- os: ubuntu-latest | ||
cpp_compiler: cl | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set Reusable Strings | ||
id: strings | ||
shell: bash | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
- name: Install GCC | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
shell: bash | ||
run: | | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update | ||
sudo apt-get -y install g++-13 | ||
- name: Configure CMake | ||
run: > | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-S ${{ github.workspace }} | ||
- name: Build | ||
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} | ||
|
||
- name: Upload Ubuntu Assets | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: vtfontmaker | ||
asset_path: ${{ steps.strings.outputs.build-output-dir }}/vtfontmaker | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload Windows Assets | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: vtfontmaker.exe | ||
asset_path: ${{ steps.strings.outputs.build-output-dir }}/Release/vtfontmaker.exe | ||
asset_content_type: application/octet-stream |
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 @@ | ||
.vs/ |
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,38 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
project(vtfontmaker) | ||
|
||
set( | ||
MAIN_FILES | ||
"src/main.cpp" | ||
"src/application.cpp" | ||
"src/canvas.cpp" | ||
"src/capabilities.cpp" | ||
"src/charsets.cpp" | ||
"src/coloring.cpp" | ||
"src/common_dialog.cpp" | ||
"src/dialog.cpp" | ||
"src/font.cpp" | ||
"src/glyphs.cpp" | ||
"src/iso2022.cpp" | ||
"src/keyboard.cpp" | ||
"src/macros.cpp" | ||
"src/menu.cpp" | ||
"src/os.cpp" | ||
"src/status.cpp" | ||
"src/vt.cpp" | ||
) | ||
|
||
set( | ||
DOC_FILES | ||
"README.md" | ||
"LICENSE.txt" | ||
) | ||
|
||
if(WIN32) | ||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") | ||
endif() | ||
|
||
add_executable(vtfontmaker ${MAIN_FILES}) | ||
|
||
set_target_properties(vtfontmaker PROPERTIES CXX_STANDARD 20 CXX_STANDARD_REQUIRED On) | ||
source_group("Doc Files" FILES ${DOC_FILES}) |
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,26 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "x64-Debug", | ||
"generator": "Ninja", | ||
"configurationType": "Debug", | ||
"inheritEnvironments": [ "msvc_x64_x64" ], | ||
"buildRoot": "${projectDir}\\build\\${name}", | ||
"installRoot": "${projectDir}\\build\\install\\${name}", | ||
"cmakeCommandArgs": "", | ||
"buildCommandArgs": "", | ||
"ctestCommandArgs": "" | ||
}, | ||
{ | ||
"name": "x64-Release", | ||
"generator": "Ninja", | ||
"configurationType": "RelWithDebInfo", | ||
"inheritEnvironments": [ "msvc_x64_x64" ], | ||
"buildRoot": "${projectDir}\\build\\${name}", | ||
"installRoot": "${projectDir}\\build\\install\\${name}", | ||
"cmakeCommandArgs": "", | ||
"buildCommandArgs": "", | ||
"ctestCommandArgs": "" | ||
} | ||
] | ||
} |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2024 James Holderness | ||
|
||
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 the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,58 @@ | ||
VT Font Maker | ||
============= | ||
|
||
![Screenshot](screenshot.png) | ||
|
||
This is a TUI application for editing VT soft fonts, also known as Dynamically | ||
Redefinable Character Sets. It requires a VT525 (or something of comparable | ||
functionality) to run, but it should be capable of editing fonts from most if | ||
not all of the DEC terminals. | ||
|
||
|
||
Quick Start | ||
----------- | ||
|
||
* Use the cursor keys to move | ||
* Hold down `Alt` while moving to select a range | ||
* Press the `Space` bar to toggle a pixel | ||
* Use `F10` to open the menu | ||
|
||
|
||
Download | ||
-------- | ||
|
||
The latest binaries can be found on GitHub at the following url: | ||
|
||
https://github.com/j4james/vtfontmaker/releases/latest | ||
|
||
For Linux download `vtfontmaker`, and for Windows download `vtfontmaker.exe`. | ||
|
||
|
||
Build Instructions | ||
------------------ | ||
|
||
If you want to build this yourself, you'll need [CMake] version 3.15 or later | ||
and a C++ compiler supporting C++20 or later. | ||
|
||
1. Download or clone the source: | ||
`git clone https://github.com/j4james/vtfontmaker.git` | ||
|
||
2. Change into the build directory: | ||
`cd vtfontmaker/build` | ||
|
||
3. Generate the build project: | ||
`cmake -D CMAKE_BUILD_TYPE=Release ..` | ||
|
||
4. Start the build: | ||
`cmake --build . --config Release` | ||
|
||
[CMake]: https://cmake.org/ | ||
|
||
|
||
License | ||
------- | ||
|
||
The VT Font Maker source code and binaries are released under the MIT License. | ||
See the [LICENSE] file for full license details. | ||
|
||
[LICENSE]: LICENSE.txt |
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,2 @@ | ||
* | ||
!.gitignore |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.