Skip to content

Commit

Permalink
Merge pull request #2 from jejebecarte/add-bold-and-italic
Browse files Browse the repository at this point in the history
Add italic and bold-italic support
  • Loading branch information
jejebecarte authored Sep 28, 2024
2 parents 9d5fcbc + 63a4b9e commit 3534c9d
Show file tree
Hide file tree
Showing 34 changed files with 703,382 additions and 1,903 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ $ npm install minecraft-text-canvas
| Dark Gray | &8 |
| Black | &0 |
| Bold | &l |
| Italic | &o |
| Reset | &r |
| Newline | \n |

Expand Down
7 changes: 5 additions & 2 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Support underline, strikethrough, italic
Escaping markup
Support underline, strikethrough
Escaping markup
Text wrapping (old chat width, new chat width, maximum JPEG size)
Backgrounds (mattdoes.dev fake chat generator)
italic kerning
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minecraft-text-canvas",
"version": "1.0.2",
"version": "1.1.0",
"description": "Generate images of Minecraft text using markup.",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -27,7 +27,8 @@
"scripts": {
"build": "tsc && pnpm run copy-files",
"clean": "rm -r dist/",
"copy-files": "copyfiles -u 1 src/**/*.otf dist/",
"copy-files": "copyfiles -u 1 src/fonts/**/* dist/",
"create-glyphs": "node scripts/create-glyphs.js",
"dev": "ts-node-dev --respawn --transpile-only --poll src/index.ts",
"format": "prettier --write \"src/**\"",
"lint": "eslint \"src/**\"",
Expand All @@ -37,13 +38,15 @@
"canvas": "2.10.2"
},
"devDependencies": {
"@jejebecarte/eslint-config": "^1.0.5",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"@jejebecarte/eslint-config": "^1.0.6",
"@types/node": "^22.7.4",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"copyfiles": "^2.4.1",
"eslint": "^8.18.0",
"node-gyp": "^10.1.0",
"typescript": "^4.5.5"
"eslint": "^8.2.0",
"node-gyp": "^10.2.0",
"prettier": "^2.8.7",
"ts-node-dev": "^2.0.0",
"typescript": "^5.6.2"
}
}
Loading

0 comments on commit 3534c9d

Please sign in to comment.