contour
contour copied to clipboard
U+25b8 font fallback
Contour Terminal version
Contour Terminal Emulator 0.3.2-unreleased-master-7f3454b6
Installer source
Github: source code cloned
Operating System
Linux blacktoo 5.15.32-gentoo-dist #1 SMP Wed Mar 30 08:46:54 -00 2022 x86_64 AMD Ryzen 9 5900X 12-Core Processor AuthenticAMD GNU/Linux
Architecture
x86-64
Other Software
No response
Steps to reproduce
#! /bin/bash
echo ▸
read
Expected Behavior
Render the glyph better
Actual Behavior
Tiny triangle, barely visible
Additional notes
[2022-05-04 20:20:15.424723] [font.textshaping] Shaping using font key: 0, text: "▸"
[2022-05-04 20:20:15.424740] [font.textshaping] Shaping codepoints: 0:U+25b8
Using font: key=0, path="/home/uros/.fonts/JetBrains Mono Regular Nerd Font Complete Mono.ttf"
[2022-05-04 20:20:15.426766] [font.locator] Loading font: key=8, id="/home/uros/.fonts/JetBrains Mono Medium Nerd Font Complete Mono.ttf" size=10pt dpi 96x96 (17, 8, 14, -3, -1, 1)
[2022-05-04 20:20:15.426775] [font.textshaping] Try fallbacks font key:8, source: path /home/uros/.fonts/JetBrains Mono Medium Nerd Font Complete Mono.ttf
[2022-05-04 20:20:15.427212] [font.locator] Loading font: key=9, id="/usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf" size=10pt dpi 96x96 (16, 8, 12, -4, -2, 1)
[2022-05-04 20:20:15.427219] [font.textshaping] Try fallbacks font key:9, source: path /usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf
[2022-05-04 20:20:15.427575] [font.locator] Loading font: key=10, id="/usr/share/fonts/dejavu/DejaVuSansMono.ttf" size=10pt dpi 96x96 (16, 8, 13, -3, -1, 1)
[2022-05-04 20:20:15.427582] [font.textshaping] Try fallbacks font key:10, source: path /usr/share/fonts/dejavu/DejaVuSansMono.ttf
[2022-05-04 20:20:15.427691] [font.render] rasterize (10, 10pt, 2575) to rasterized_glyph(0, 6x7+(1, 7), alpha_mask)
As discussed, I can see what I can do to improve here.
But in the end (or worst case?): That codepoint will simply be implemented as part of the BoxDrawingRenderer.cpp, where this is already listed as TODO item.
I'm not sure how much that can improve at such a small pt font size.
what are you metrics? You can dump the initial logging output of debug tag gui.display
, the part that looks similar to that example?
[2022-05-04 20:41:59.343337] [gui.display] [FYI] Font DPI : 144x144 (144x144)
[2022-05-04 20:41:59.343353] [gui.display] [FYI] Font size : 18pt (36 px)
[2022-05-04 20:41:59.343368] [gui.display] [FYI] Cell size : 22x44 px
[2022-05-04 20:41:59.343390] [gui.display] [FYI] Page size : 100x30
[2022-05-04 20:41:59.343404] [gui.display] [FYI] Font baseline : 8 px
[2022-05-04 20:41:59.343416] [gui.display] [FYI] Underline position : 3 px
[2022-05-04 20:41:59.343427] [gui.display] [FYI] Underline thickness : 2 px
[2022-05-04 21:02:27.289200] [gui.display] [FYI] Build type : RelWithDebInfo
[2022-05-04 21:02:27.289206] [gui.display] [FYI] Application PID : 5366
[2022-05-04 21:02:27.289209] [gui.display] [FYI] OpenGL type : OpenGL
[2022-05-04 21:02:27.289211] [gui.display] [FYI] OpenGL renderer : NVIDIA GeForce GT 1030/PCIe/SSE2
[2022-05-04 21:02:27.289217] [gui.display] [FYI] Qt platform : xcb
[2022-05-04 21:02:27.289226] [gui.display] [FYI] OpenGL version : 3.3
[2022-05-04 21:02:27.289230] [gui.display] [FYI] GLSL version : 3.30 NVIDIA via Cg compiler
[2022-05-04 21:02:27.289240] [gui.display] contentScale: 1
[2022-05-04 21:02:27.289245] [gui.display] [FYI] Refresh rate : 60 Hz
[2022-05-04 21:02:27.289248] [gui.display] [FYI] Screen size : 1920x1080
[2022-05-04 21:02:27.289251] [gui.display] [FYI] Logical DPI : 96x96
[2022-05-04 21:02:27.289257] [gui.display] [FYI] Physical DPI : 96x96
[2022-05-04 21:02:27.289260] [gui.display] [FYI] Device pixel ratio : 1
[2022-05-04 21:02:27.289269] [gui.display] contentScale: 1
[2022-05-04 21:02:27.289272] [gui.display] [FYI] Content scale : 1
[2022-05-04 21:02:27.289279] [gui.display] contentScale: 1
[2022-05-04 21:02:27.289283] [gui.display] [FYI] Font DPI : 96x96 (96x96)
[2022-05-04 21:02:27.289286] [gui.display] [FYI] Font size : 10pt (14 px)
[2022-05-04 21:02:27.289289] [gui.display] [FYI] Cell size : 8x17 px
[2022-05-04 21:02:27.289292] [gui.display] [FYI] Page size : 210x60
[2022-05-04 21:02:27.289295] [gui.display] [FYI] Font baseline : 3 px
[2022-05-04 21:02:27.289298] [gui.display] [FYI] Underline position : 2 px
[2022-05-04 21:02:27.289301] [gui.display] [FYI] Underline thickness : 1 px
This one is rendering properly on QML