fix(image): use correct range for icon code points

This commit is contained in:
Jan De Dobbeleer 2024-02-14 21:47:08 +01:00 committed by Jan De Dobbeleer
parent 43e9246c6b
commit 6bbca22d3b

View file

@ -291,7 +291,7 @@ type RuneRange struct {
// If we're a Nerd Font code point, treat as double width // If we're a Nerd Font code point, treat as double width
var doubleWidthRunes = []RuneRange{ var doubleWidthRunes = []RuneRange{
// Seti-UI + Custom range // Seti-UI + Custom range
{Start: '\ue5fa', End: '\ue62b'}, {Start: '\ue5fa', End: '\ue6b1'},
// Devicons // Devicons
{Start: '\ue700', End: '\ue7c5'}, {Start: '\ue700', End: '\ue7c5'},
// Font Awesome // Font Awesome
@ -301,26 +301,25 @@ var doubleWidthRunes = []RuneRange{
// Material Design Icons // Material Design Icons
{Start: '\U000f0001', End: '\U000f1af0'}, {Start: '\U000f0001', End: '\U000f1af0'},
// Weather // Weather
{Start: '\ue300', End: '\ue3eb'}, {Start: '\ue300', End: '\ue3e3'},
// Octicons // Octicons
{Start: '\uf400', End: '\uf4a8'}, {Start: '\uf400', End: '\uf532'},
{Start: '\u2665', End: '\u2665'}, {Start: '\u2665', End: '\u2665'},
{Start: '\u26A1', End: '\u26A1'}, {Start: '\u26A1', End: '\u26A1'},
{Start: '\uf27c', End: '\uf27c'},
// Powerline Extra Symbols (intentionally excluding single width bubbles (e0b4-e0b7) and pixelated (e0c4-e0c7)) // Powerline Extra Symbols (intentionally excluding single width bubbles (e0b4-e0b7) and pixelated (e0c4-e0c7))
{Start: '\ue0a3', End: '\ue0a3'}, {Start: '\ue0a3', End: '\ue0a3'},
{Start: '\ue0b8', End: '\ue0c3'}, {Start: '\ue0b4', End: '\ue0c8'},
{Start: '\ue0c8', End: '\ue0c8'},
{Start: '\ue0ca', End: '\ue0ca'}, {Start: '\ue0ca', End: '\ue0ca'},
{Start: '\ue0cc', End: '\ue0d2'}, {Start: '\ue0cc', End: '\ue0d4'},
{Start: '\ue0d4', End: '\ue0d4'},
// IEC Power Symbols // IEC Power Symbols
{Start: '\u23fb', End: '\u23fe'}, {Start: '\u23fb', End: '\u23fe'},
{Start: '\u2b58', End: '\u2b58'}, {Start: '\u2b58', End: '\u2b58'},
// Font Logos // Font Logos
{Start: '\uf300', End: '\uf31c'}, {Start: '\uf300', End: '\uf372'},
// Pomicons // Pomicons
{Start: '\ue000', End: '\ue00d'}, {Start: '\ue000', End: '\ue00a'},
// Codicons
{Start: '\uea60', End: '\uebeb'},
} }
// This is getting how many additional characters of width to allocate when drawing // This is getting how many additional characters of width to allocate when drawing