2420 Commits

Author SHA1 Message Date
Kovid Goyal
51ac78f74d
X11: Set the WINDOWID environment variable
Fixes #232
2017-12-16 08:57:52 +05:30
Kovid Goyal
3cce9b1c38
... 2017-12-16 08:54:55 +05:30
Kovid Goyal
8a9ee6f3f5
... 2017-12-15 16:32:28 +05:30
Kovid Goyal
d3059c09e0
Nicer CLI help output 2017-12-15 14:49:42 +05:30
Kovid Goyal
1f093b4ff2
icat: Add an option to only detect image display support 2017-12-15 14:06:41 +05:30
Kovid Goyal
50470b5747
icat: Add --transfer-mode option
Explicitly control the transfer mode instead of auto-detecting
2017-12-15 13:34:39 +05:30
Kovid Goyal
304f21e79d
icat: Fix temp files not being deleted when transmitting using escape codes 2017-12-15 13:18:18 +05:30
Kovid Goyal
cb04deef63
icat: Add a command line argument for horizontal alignment 2017-12-15 13:08:27 +05:30
Kovid Goyal
ddb2e41352
Get rid of argparse from kitty-icat as well 2017-12-15 12:35:30 +05:30
Kovid Goyal
a6700c951a
Also filter 8-bit control sequences when sanitizing 2017-12-15 09:36:45 +05:30
Kovid Goyal
684a2e05f4
Move logical DPI calculation into glfw module
Now DPI state is maintained in only one central place.
2017-12-14 18:30:53 +05:30
Kovid Goyal
c7e1a12eb6
Have pt_to_px use global_state instead of get_dpi
DRYer and reduces code size
2017-12-14 18:04:10 +05:30
Kovid Goyal
ce7be5a05e
Fix #226 2017-12-14 06:42:52 +05:30
Kovid Goyal
433640de84
Support running on the "low power" GPU on dual GPU macOS machines
Fixes #136
2017-12-14 06:14:22 +05:30
Kovid Goyal
7f19424f2d
Fix for kitty sometimes not detecting child death on macOS 2017-12-13 22:20:11 +05:30
Kovid Goyal
b9d0ec0d4c
CoreText: Use the layout engine to calculate cell height
Slower, but hopefully more accurate, since it takes into account
whatever kludges Apple is currently using to calculate line height
in its applications.
2017-12-13 14:12:23 +05:30
Kovid Goyal
869abc4d5c
... 2017-12-13 14:05:01 +05:30
Kovid Goyal
872118fcbe
CoreText: Fix incorrect underline position and thickness calculation 2017-12-13 13:59:11 +05:30
Kovid Goyal
da0309545e
Ensure bounds in add_line() 2017-12-13 13:46:28 +05:30
Kovid Goyal
54b802f1e6
Ensure bounds in add_dline() 2017-12-13 13:45:11 +05:30
Kovid Goyal
d097403a12
Implement select-by-rectangle when holding down Ctrl+Alt
Fixes #225
2017-12-13 13:26:55 +05:30
Kovid Goyal
c81a8216dc
Limit the max number of lines to extend URLs over 2017-12-13 12:18:35 +05:30
Kovid Goyal
95683c658b
When hovering over a URL, highlight the URL fully even if it continues over multiple lines. Note that URL detection has not changed. A URL will be detected only if the mouse hovers over the line containing the start of the URL. 2017-12-13 11:11:13 +05:30
Kovid Goyal
d25c0d42bc
CoreText: Ensure cell_width and cell_height are never zero 2017-12-13 09:35:50 +05:30
Kovid Goyal
77f0328f4f
Ensure mouse cursor is in default state when focus is switched to the OSWindow 2017-12-13 08:54:11 +05:30
Kovid Goyal
a1b4f7c92d
Fix COreText leak on exit 2017-12-13 08:27:33 +05:30
Kovid Goyal
47704f24c1
CoreText: Get rid of the line height fudge factor
It was leading to larger line heights than in iTerm on High Sierra with
Menlo. Also as per Apple documentation, line height should be ascent +
descent + leading.
https://developer.apple.com/library/content/documentation/TextFonts/Conceptual/CocoaTextArchitecture/TypoFeatures/TextSystemFeatures.html
2017-12-13 08:22:26 +05:30
Kovid Goyal
e0ef563885
Use glfw primary monitor content scale for logical DPI on macOS as well
It gives the correct DPI value on a MacBook Air monitor, while physical
DPI is too high, leading to overlarge fonts.
2017-12-12 23:47:42 +05:30
Kovid Goyal
2e570e21a0
Ensure kitty is on the PATH when running from kitty.app 2017-12-12 23:29:01 +05:30
Kovid Goyal
a962a28b36
... 2017-12-12 22:23:16 +05:30
Kovid Goyal
898395253b
Add test for ignored color id in SGR colon based color sequence 2017-12-12 18:50:37 +05:30
Kovid Goyal
346a9f68b1
Fix #227 2017-12-12 18:38:52 +05:30
Kovid Goyal
dbf8eb773c
Add a FAQ entry about building kitty.app 2017-12-12 09:49:41 +05:30
Kovid Goyal
47ed1a4dca
Make update-on-ox not depend on remote script 2017-12-11 23:11:34 +05:30
Kovid Goyal
4c566ee37f
Clarify FAQ entry further 2017-12-11 21:38:16 +05:30
Kovid Goyal
a29b424477
CoreText: Implement resizing of glyphs too wide to fit 2017-12-11 20:34:23 +05:30
Kovid Goyal
56a30a014c
Fix compilation order reversed 2017-12-11 20:28:36 +05:30
Kovid Goyal
abdc149f65
Update travis script 2017-12-11 19:10:00 +05:30
Kovid Goyal
005c4bf29e
Finish up CoreText based rendering 2017-12-11 19:04:44 +05:30
Kovid Goyal
c86c166448
More work on positioning glyphs with CoreText 2017-12-11 18:48:14 +05:30
Kovid Goyal
0999ce159e
Fix colors incorrect when rendering directly to buf 2017-12-11 10:43:32 +05:30
Kovid Goyal
98d8ab2953
Fix OT shaper not working on macOS
Also dont keep an extra reference to the hb font in fonts.c
2017-12-11 09:48:20 +05:30
Kovid Goyal
5407fa72b4
Start work on rendering with CoreText 2017-12-10 20:28:06 +05:30
Kovid Goyal
e332522a61
Mark backend API in fonts.h header 2017-12-10 09:21:46 +05:30
Kovid Goyal
ee27f23862
Add rgba and lcdfilter fields to the fc-dict 2017-12-09 12:58:23 +05:30
Kovid Goyal
b1853ca966
Dont insist color fonts have bitmaps 2017-12-09 12:01:43 +05:30
Kovid Goyal
ed2e83654f
Draw emoji on macOS using CoreText rather than FreeType
Needed because FreeType cannot handle the latest version of the Apple
Color Emoji font, which probably uses SVG-in-OTF instead of SBIX.
Finishes up the color emoji implementation.
2017-12-09 12:01:43 +05:30
Kovid Goyal
ec6dcd53b5
Finish up placement of color emojis
Note that for some reason rendering is broken on Apple
2017-12-09 12:01:43 +05:30
Kovid Goyal
0b6fe99611
Report errors rendering glyphs 2017-12-09 12:01:43 +05:30
Kovid Goyal
03847b15f6
Implement downsampling of color emoji bitmaps
Still need to fix placement of the downsampled bitmaps in the cell
2017-12-09 12:01:43 +05:30