I now know what font is responsible for the unicode character being
displayed in xfce4-terminal. It's called `Noto Color Emoji`. But if I
put
```
static char *font = "Noto Color Emoji:size=9:antialias=true:autohint=true";
```
I can then see nothing. If I type something I see the cursor moving
around, but no text. So clearly that font only has symbols for emojis.
In the end, I have decided not to use glyphs in terminal.
Thanks for your help,
Enan Ajmain
On Mon, Feb 25, 2019 at 10:31 PM Erika Mannerheim
<erika.ann.mannerheim_AT_gmail.com> wrote:
>
> To my knowledge, st also supports fallback fonts via fontconfig, just
> the same as xfce4-terminal.
> I can't test it for you because I obviously don't have the proper font
> installed to display that magnify glass. I just installed
> xfce4-terminal to do a quick test, but it can't show the glyph either.
> I think it is more advisable to find out what (icon) font can display
> that particular unicode you want. This is in my opinion less a problem
> of the terminal emulator than the choice of font.
>
> On Mon, Feb 25, 2019 at 5:11 PM Enan Ajmain <3nan.ajmain_AT_gmail.com> wrote:
> >
> > 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 Wed Feb 27 2019 - 07:18:09 CET