Modeline UTF-8

4 views
Skip to first unread message

maschine...@disroot.org

unread,
Sep 16, 2023, 11:06:21 PM9/16/23
to stumpw...@nongnu.org
Can the modeline provide support for unicode in some way? There are some characters
(such as the japanese ones) that just do not show up. Or is it because it lacks fallback fonts?

Szos

unread,
Sep 17, 2023, 7:09:20 AM9/17/23
to stumpw...@nongnu.org
The mode line uses bitmap fonts by default; if you have a bitmap font that supports those characters you can use it. However you can also use other fonts by loading either the cl truetype system[1] or the freetype systems[2]. The font is set with the function SET-FONT.

[1] https://github.com/stumpwm/clx-truetype

[2] you will need two systems: https://github.com/dmb2/stumpwm-freetype-fonts and https://github.com/dmb2/clx-ft2-renderer

Colin Baxter

unread,
Sep 17, 2023, 7:53:20 AM9/17/23
to Szos, stumpw...@nongnu.org
>>>>> Szos <sz...@posteo.net> writes:

> The mode line uses bitmap fonts by default; if you have a bitmap
> font that supports those characters you can use it. However you
> can also use other fonts by loading either the cl truetype
> system[1] or the freetype systems[2]. The font is set with the
> function SET-FONT.

> [1] https://github.com/stumpwm/clx-truetype

<https://github.com/stumpwm/clx-truetype> gives a manual at
<http://filonenko-mikhail.github.com/clx-truetype/>, which is a dead
link. Does anyone know where the manual is now?

Best wishes,

Colin Baxter.

CToID

unread,
Sep 17, 2023, 8:59:56 AM9/17/23
to stumpw...@nongnu.org
There's another way without extra dependencies, just install GNU unifont
 
17.09.2023, 19:09, "Szos" <sz...@posteo.net>:

maschine...@disroot.org

unread,
Sep 19, 2023, 8:51:07 PM9/19/23
to sz...@posteo.net, stumpw...@nongnu.org
stumpwm-de...@nongnu.org writes:

> Message: 1
> Date: Sat, 16 Sep 2023 23:05:08 -0400
> From: <maschine...@disroot.org>
> To: stumpw...@nongnu.org
> Subject: Modeline UTF-8
> Message-ID: <87a5tlq...@disroot.org>
>
> Can the modeline provide support for unicode in some way? There are some characters
> (such as the japanese ones) that just do not show up. Or is it because it lacks fallback fonts?
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 17 Sep 2023 11:08:40 +0000
> From: Szos <sz...@posteo.net>
> To: stumpw...@nongnu.org
> Subject: Re: Modeline UTF-8
> Message-ID: <5405C8A1-E9C0-47BD...@posteo.net>
> Content-Type: text/plain; charset="utf-8"
>
> The mode line uses bitmap fonts by default; if you have a bitmap font that supports those characters you can use it. However you can also use other fonts by loading either the cl truetype system[1] or the freetype systems[2]. The font is set with the function SET-FONT.
>
> [1] https://github.com/stumpwm/clx-truetype
>
> [2] you will need two systems: https://github.com/dmb2/stumpwm-freetype-fonts and https://github.com/dmb2/clx-ft2-renderer
>
> On September 17, 2023 3:05:08 AM UTC, maschine...@disroot.org wrote:
>>Can the modeline provide support for unicode in some way? There are some characters
>>(such as the japanese ones) that just do not show up. Or is it because it lacks fallback fonts?
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.nongnu.org/archive/html/stumpwm-devel/attachments/20230917/89c702fe/attachment.htm>
>
> ------------------------------
>
Thankyou. It turned out not of the fonts i was using supported the
characters i needed. clx-truetype was enough, though.
(by the way, i'm still trying to figure out how to properly interact
with mailing lists, so if i mess it up i say sorry in advance!)

Best regards

Reply all
Reply to author
Forward
0 new messages