Re: [dev] [st] Cannot display unicode characters for example '\U1F50D'

From: Enan Ajmain <3nan.ajmain_AT_gmail.com>
Date: Mon, 25 Feb 2019 22:10:15 +0600

I'm also using Monaco for xfce4-terminal. But I guess xfce4-terminal
implicitly handles unicode symbol errors and such. I'll try to try out
every fonts in my cache, but it would be exhausting.

By the way, I tried to launch st from another st instance and did
`echo $'\U1F50D'`. The new st instance crashed and the output in the
old st instance was the following.

```
X Error of failed request: BadLength (poly request too large or
internal Xlib length error)
  Major opcode of failed request: 139 (RENDER)
  Minor opcode of failed request: 20 (RenderAddGlyphs)
  Serial number of failed request: 1353
  Current serial number in output stream: 1392
```

Maybe this error catch could provide some insight?

On Mon, Feb 25, 2019 at 9:50 PM Erika Mannerheim
<erika.ann.mannerheim_AT_gmail.com> wrote:
>
> It's probably because the monaco font you are using in st doesn't
> cover that unicode range.
> You have to figure out what font can display that character. Maybe you
> can find out what font your xfce terminal is actually using and update
> your st config.h correspondingly?
>
> On Mon, Feb 25, 2019 at 3:35 PM Enan Ajmain <3nan.ajmain_AT_gmail.com> wrote:
> >
> > Hi,
> > I am using the current HEAD of the st repository. My personal
> > configurations are here:
> > https://github.com/enanajmain/st/blob/enan/config.h.
> >
> > I'm trying to display the following icon '\U1F50D', but it doesn't
> > show in ST terminal. But it appears properly in xfce4-terminal. I have
> > checked with some other unicode characters and it seems like that ST
> > can show upto a range of unicode characters. Unicode characters have
> > two ranges, for the first range you have to use `\u`, a lowercase `u`,
> > whereas for the second range, you've to use `\U`, an uppercase `u`.
> >
> > I cannot figure out what is the problem. Maybe I need to use some
> > specfic fonts. It would be great I could get some help fixing this.
> >
> > Thanks,
> > Enan Ajmain
> >
>
Received on Mon Feb 25 2019 - 17:10:15 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 25 2019 - 17:12:08 CET