Commit Graph
827 Commits
Author SHA1 Message Date
Kovid Goyal bb37516d6f Add a note to the README about kitty's font control features 2017-02-09 21:38:05 +05:30
Kovid Goyal 6c6f000229 Implement symbol maps
A config option to use special fonts for specified unicode characters.
Useful for things like Powerline without needing patched fonts.
2017-02-09 21:15:53 +05:30
Kovid Goyal a4715de5dc Fix tab bar borders not being blanked 2017-02-09 17:34:56 +05:30
Kovid Goyal cbf0959fbf Fix tab bar not being rendered after first new tab is created 2017-02-09 17:02:02 +05:30
Kovid Goyal 49c81da763 Adjust rescale threshold 2017-02-09 13:38:19 +05:30
Kovid Goyal 7e34807859 Linux: use only advances for calculating cell sizes
There are apparently monospace fonts whose characters are not actually
monospaced when rendered, for example, Liberation Mono. It has
characters that when rendered result in bitmaps wider than the advance.

So we use only the advance as that is what most linux software seems to
do. Fixes #47
2017-02-09 13:36:44 +05:30
Kovid Goyal e2ac9ec118 Fix building on OS X 2017-02-09 09:18:41 +05:30
Kovid Goyal c58be6ddf5 A spot of refactoring 2017-02-08 22:24:58 +05:30
Kovid Goyal b9b15d41f4 Explicitly depend only on fontconfig since it in turn depends on freetype 2017-02-08 21:59:05 +05:30
Kovid Goyal dea60cdaf0 Forgot to also catch KeyError 2017-02-08 21:57:39 +05:30
Kovid Goyal 02ef3c6dc8 Linux: Use libfontconfig directly instead of calling fc-match
There are apparently some linux systems out there with versions of
fontconfig that do not understanf the :charset query when passed to
fc-match. See #46
2017-02-08 21:52:10 +05:30
Kovid Goyal 882a4f2ab3 Linux: Add support for .ttc files 2017-02-08 21:07:10 +05:30
Kovid Goyal 85e05a447d Linux: Fallback to using bitmapped fonts for characters that are not present in any scalable fonts on the system
Fixes #46
2017-02-08 11:29:24 +05:30
Kovid Goyal 1ff4e9703a Refactor the fontconfig API
Makes it more flexible and DRYer
2017-02-08 10:10:07 +05:30
Kovid Goyal 0b2af7c33a Configure yapf/isort 2017-02-08 09:59:36 +05:30
Kovid Goyal 68115b50a5 Simplification 2017-02-08 09:45:27 +05:30
Kovid Goyal 9aa1d74f83 Linux: Don't crash when fontconfig is unable to find a font for a character.
Instead render it as a missing glyph
2017-02-08 09:32:15 +05:30
Kovid Goyal 4532194b01 ... 2017-02-06 22:18:59 +05:30
Kovid Goyal ebacb16f67 Compile the launcher with -fpie 2017-02-06 16:19:33 +05:30
Kovid Goyal 585a01fff6 Start out in normal key mode
Matches behavior of xterm
2017-02-05 16:39:40 +05:30
Kovid Goyal bb7edb5f8f Implement DECRQM
Also add tests for DECRQM and DECCKM
2017-02-05 16:21:13 +05:30
Kovid Goyal 142c883b0c Implement DECCKM 2017-02-05 15:30:16 +05:30
Kovid Goyal bf3f6f6014 Add a note about the availability of the dmg 2017-02-02 16:35:02 +05:30
Kovid Goyal 688d0f74c4 Use print() instead of stdout.buffer.write() 2017-02-02 16:30:53 +05:30
Kovid Goyal 71b4ea5a60 oops 2017-02-02 16:24:38 +05:30
Kovid Goyal a26fbd5a1b ... v0.1.0 2017-02-02 16:19:58 +05:30
Kovid Goyal aff9a5c4f4 Start work on script to publish kitty 2017-02-02 16:19:05 +05:30
Kovid Goyal 3ee99a61ff Make the logo a little nicer 2017-02-02 15:23:46 +05:30
Kovid Goyal 3911f18fd9 Startup in the home directory when launched by launch services 2017-02-02 15:07:13 +05:30
Kovid Goyal af1f3cc7c7 More robust in bundle launcher
Ignores environment, user settings. Should minimize the chances of
conflict with any other python installations on the system.
2017-02-02 14:26:26 +05:30
Kovid Goyal 543af0dd89 Implement building OS X bundle
In order for @executable_path resolution to work the launcher has
to link against the python dll rather than running the python
executable.
2017-02-02 12:04:52 +05:30
Kovid Goyal 0427f30c2a Improve rendering of italic fonts in linux
Now rather than down-size characters from italic fonts that do not fit
into the cell width, trim the left and right margins to make them fit,
instead.
2017-01-25 20:30:39 +05:30
Kovid Goyal b4bf0eb794 Anti-alias the powerline box characters 2017-01-24 11:00:29 +05:30
Kovid Goyal 8e324649b7 Allow setting bold/italic font variants individually 2017-01-24 09:03:04 +05:30
Kovid Goyal def51f856b Pass all opts to set_font_family
Makes it easier to specialize based on more opts in the future
2017-01-24 08:41:32 +05:30
Kovid Goyal 598c5d313b A better (I hope) cell height calculation on OS X
See #42
2017-01-24 08:01:52 +05:30
Kovid Goyal 9f3d6fe0e9 Fix mouse co-ordinates incorrect on OS X retina
Fixes #43
2017-01-24 07:30:57 +05:30
Kovid Goyal 72955afba8 ... 2017-01-23 20:49:28 +05:30
Kovid Goyal 56a0e145e3 Use TIOCGWINSZ to get screen width and height
Better that creating a new escape code, since it is synchronous.
2017-01-23 19:50:12 +05:30
Kovid Goyal d8545e5c43 Report the window width and height for TIOCSWINSZ
Matches behavior of xterm
2017-01-23 18:41:41 +05:30
Kovid Goyal 9cfa3dd0ea Use tic when building linux-package instead of hard coding terminfo directory structure 2017-01-23 09:29:23 +05:30
Kovid Goyal 3cbb0b22dc Fix terminfo file not being used on OS X
On OS X tic has a different directory layout than on linux. Sigh.
2017-01-23 08:56:52 +05:30
Kovid Goyal 49ea4f736d typos 2017-01-22 20:40:10 +05:30
Kovid Goyal b1b458e912 When extracting URLs recognize URLs inside delimiters 2017-01-21 19:53:33 +05:30
Kovid Goyal 107b395621 Add a summary of the control keys used 2017-01-21 11:43:11 +05:30
Kovid Goyal fff37ea39b ... 2017-01-21 11:34:54 +05:30
Kovid Goyal 98ec79e649 ... 2017-01-21 11:32:08 +05:30
Kovid Goyal 22a7283420 More spec work 2017-01-21 11:30:37 +05:30
Kovid Goyal 832e21cb1d Formatting 2017-01-21 09:52:59 +05:30
Kovid Goyal 9bc1e59246 More work on the graphics spec 2017-01-21 09:50:23 +05:30