Kovid Goyal
e3af9f68d3
Linux: Fix selection of fonts with multiple width variants not preferring the normal width faces
...
Fixes #2491
2020-03-29 01:52:33 +05:30
Kovid Goyal
a4cc10c41b
More typing work
2020-03-04 06:10:57 +05:30
Kovid Goyal
bc302dad23
Linux: Allow using fonts with spacing=90 in addition to fonts with spacing=100
...
Fixes #1968
2019-09-15 06:08:40 +05:30
Kovid Goyal
1369a36178
Exclude variation selectors when finding fallback font
2019-05-13 20:36:29 +05:30
Kovid Goyal
4273cb35bf
Linux: Dont fail on systems with fonts that have non-UTF-8 names. Fixes #1281
2018-12-31 07:31:17 +05:30
Kovid Goyal
6bf290149e
Allow specifying monospace when calling fc_match
2018-10-24 06:45:06 +05:30
Kovid Goyal
8dea5b3e3e
Reduce data sent to GPU per draw by 30%
...
Split up the Cell structure into a CPUCell and a GPUCell. Only the
GPUCell part needs to be sent to the GPU. Should make kitty use even
less system resources and make a performance difference on systems where
the GPU bandwidth is constrained.
Also allows adding more CPU only data in the future without affecting
GPU bandwidth. For example, hyperlinks or more combining characters.
2018-05-27 21:25:09 +05:30
Kovid Goyal
df9eab279a
Implement changing the font size for individual top level (OS) windows
2018-05-27 12:37:49 +05:30
Kovid Goyal
523aadaa3b
Refactor font group handling
...
Allow kitty to manage multiple groups of fonts with different cell
sizes. Will eventually allow kitty to have different font sizes/dpi per
OSWindow
2018-05-27 12:37:05 +05:30
Kovid Goyal
4f18342ea6
Linux: Fix fonts not being correctly read from TrueType Collection (.ttc) files.
...
kitty was always selecting the first font rather than the
actual matched font. Fixes #577
2018-05-27 12:30:28 +05:30
Kovid Goyal
96c93fa252
Add support for emoji presentation when choosing fallback fonts
2018-02-06 11:11:22 +05:30
Kovid Goyal
b9857f9499
Only consider emoji characters with emoji presentation to have width two
...
Fixes #308
2018-02-05 09:21:13 +05:30
Kovid Goyal
0fcce6ec58
Remove trailing whitespace from native code files
2017-12-20 08:44:47 +05:30
Kovid Goyal
ee27f23862
Add rgba and lcdfilter fields to the fc-dict
2017-12-09 12:58:23 +05:30
Kovid Goyal
e4b839742c
Add option to control using color emoji or not
2017-12-09 12:01:43 +05:30
Kovid Goyal
f3cdf4194a
Prefer color emoji fonts
2017-12-09 12:01:43 +05:30
Kovid Goyal
ef6f4c2fbf
Improve fontconfig fallback font queries for emoji
2017-12-09 12:01:43 +05:30
Kovid Goyal
e5d411b80d
Refactor font code
...
DRYer with global state stored in fewer places. And only round-tripping
through python for font selection, not face creation.
2017-11-11 18:14:22 +05:30
Kovid Goyal
fefe6c9024
Use fc-list instead of fc-match to select fonts
...
This is because there is no way to force fc-match to return a monospace
font. So if the user specifies a non-existent font we end up with some
non-monospaced font, which looks terrible.
Also, this makes the font selection logic or macOS and Linux similar.
2017-11-10 10:15:37 +05:30
Kovid Goyal
ec58777d01
Fix compilation against old versions of fontconfig
2017-11-10 08:28:44 +05:30
Kovid Goyal
e15bc71930
Code to list fontconfig fonts
2017-11-09 20:53:10 +05:30
Kovid Goyal
c841106902
Allow querying fontconfig for multiple characters
2017-10-27 11:19:57 +05:30
Kovid Goyal
150ffab72d
finalize the fontconfig library on exit
2017-09-28 11:06:56 +05:30
Kovid Goyal
5ed4b29e4b
DRYer fontconfig module
2017-09-15 10:45:17 +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