parent
f4e14ad484
commit
7a4b954eb0
Binary file not shown.
30
README.md
30
README.md
|
@ -6,6 +6,9 @@ modifications break something.
|
|||
|
||||
http://akkartik.name/lines.html
|
||||
|
||||
This fork includes a CJK-aware font and might add features for CJK scripts
|
||||
over time.
|
||||
|
||||
## Getting started
|
||||
|
||||
Install [LÖVE](https://love2d.org). It's just a 5MB download, open-source and
|
||||
|
@ -88,30 +91,13 @@ found anything amiss: http://akkartik.name/contact
|
|||
|
||||
## Mirrors and Forks
|
||||
|
||||
Updates to lines.love can be downloaded from the following mirrors in addition
|
||||
to the website above:
|
||||
* https://github.com/akkartik/lines.love
|
||||
* https://repo.or.cz/lines.love.git
|
||||
* https://tildegit.org/akkartik/lines.love
|
||||
* https://git.tilde.institute/akkartik/lines.love
|
||||
* https://git.sr.ht/~akkartik/lines.love
|
||||
* https://notabug.org/akkartik/lines.love
|
||||
* https://codeberg.org/akkartik/lines.love
|
||||
* https://pagure.io/lines.love
|
||||
This repo is a fork of [lines.love](http://akkartik.name/lines.html), an
|
||||
editor for plain text where you can also seamlessly insert line drawings.
|
||||
Updates to it can be downloaded from:
|
||||
|
||||
Forks of lines.love are encouraged. If you show me your fork, I'll link to it
|
||||
here.
|
||||
* https://git.sr.ht/~akkartik/lines-cjk.love
|
||||
|
||||
* https://github.com/akkartik/lines-polygon-experiment -- an experiment that
|
||||
uses separate shortcuts for regular polygons. `ctrl+3` for triangles,
|
||||
`ctrl+4` for squares, etc.
|
||||
* https://git.sr.ht/~akkartik/text.love -- a stripped down version without
|
||||
drawings; useful starting point for some forks
|
||||
* https://git.sr.ht/~akkartik/pensieve.love -- a note-taking app on an
|
||||
infinite 2D surface. Still in development.
|
||||
* https://git.sr.ht/~akkartik/capture.love -- a blank-slate mode for the
|
||||
note-taking app, so all the stuff pensieve.love puts on screen doesn't cause
|
||||
you to forget what you came to write down.
|
||||
Further forks are encouraged. If you show me your fork, I'll link to it here.
|
||||
|
||||
## Associated tools
|
||||
|
||||
|
|
2
edit.lua
2
edit.lua
|
@ -465,7 +465,7 @@ end
|
|||
|
||||
function edit.update_font_settings(State, font_height)
|
||||
State.font_height = font_height
|
||||
love.graphics.setFont(love.graphics.newFont(State.font_height))
|
||||
love.graphics.setFont(love.graphics.newFont('NotoSansJP-Regular.otf', State.font_height))
|
||||
State.line_height = math.floor(font_height*1.3)
|
||||
State.em = App.newText(love.graphics.getFont(), 'm')
|
||||
Text_cache = {}
|
||||
|
|
4
run.lua
4
run.lua
|
@ -49,7 +49,7 @@ function run.initialize(arg)
|
|||
end
|
||||
|
||||
function run.load_settings()
|
||||
love.graphics.setFont(love.graphics.newFont(Settings.font_height))
|
||||
love.graphics.setFont(love.graphics.newFont('NotoSansJP-Regular.otf', Settings.font_height))
|
||||
-- determine default dimensions and flags
|
||||
App.screen.width, App.screen.height, App.screen.flags = love.window.getMode()
|
||||
-- set up desired window dimensions
|
||||
|
@ -67,7 +67,7 @@ end
|
|||
|
||||
function run.initialize_default_settings()
|
||||
local font_height = 20
|
||||
love.graphics.setFont(love.graphics.newFont(font_height))
|
||||
love.graphics.setFont(love.graphics.newFont('NotoSansJP-Regular.otf', font_height))
|
||||
local em = App.newText(love.graphics.getFont(), 'm')
|
||||
run.initialize_window_geometry(App.width(em))
|
||||
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
|
||||
|
|
Loading…
Reference in New Issue