Comments (4)
Not something I care about, patches welcome. Relevant code is
fallback_font in fontconfig.c and in core_text.m
For fontconfig you will need to create a function that gets the weight
from the base face in freetype.c and use that in your fontconfig query,
being careful to do a fallback query if there are no matches with the
specified weight.
from kitty.
Seems I need to modify create_fallback_face
, not fallback_face
, to change the fallback font.
- So what's
fallback_face
for? - I don't find any function in freetype2 to get the weight from a face. So should I manually match style strings in font_family like "Light", "Thin" to
FC_WEIGHT_LIGHT
,FC_WEIGHT_THIN
?
from kitty.
If freetype doesnt have a function for it, then use the fonts psname,
and find the weight property via fontconfig instead for that psname.
from kitty.
Or better store the weight from fontconfig in the face object when creating the face from the fontconfig descriptor, so you can refer to it in the matching code later.
from kitty.
Related Issues (20)
- New os_window with `--singe-instance` and `--instance-group` spawns on non-active display on macOS HOT 9
- Some CJK fonts display weird HOT 1
- Broken brpaste when using kitty+tmux+joe editor HOT 3
- Open a new window in the current working directory while a script is running in other directory opens the windows in the wrong directory HOT 2
- U+2518 is missing its corner pixel when rendered on a non-HiDPI display on macOS HOT 1
- Regression: rendering of bold CJK characters broken
- Mouse pointer is not aligned to cell below it when using wayland. HOT 2
- Window title font inconsistently resized when using zoom controls
- Window size decreased each time Kitty is open HOT 2
- Crash with single-instance mode on displays with different scale factors HOT 5
- kitty cannot capture focus when switching programs via keyboard on WSLg HOT 2
- window_padding_width is not accounted for in mouse coordinate reports
- When splitting to create a new panel, the previous panel will flash. HOT 8
- I can't put transparency in kitty with i3wm HOT 1
- new_tab on session_file only run once HOT 4
- macOS: "Q" button does not emit "release" event in extended keyboard mode HOT 8
- globinclude not working HOT 1
- "Failed to enable transparency. This happens when your desktop environment does not support compositing." HOT 1
- Get Error When piping `kitty @ ls` to Neovim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.