Code Monkey home page Code Monkey logo

Comments (7)

ElYaiko avatar ElYaiko commented on July 26, 2024 1

Any update?.

from herbe.

dudik avatar dudik commented on July 26, 2024

I'm quite busy these days, so I tried to quickly add this feature, but it seems like I found a bug with emoji fonts. So I just wanted to let you know that I will hopefully get to it in a week or two.

from herbe.

utilyre avatar utilyre commented on July 26, 2024

Hello @dtop129. It's nice to have fallback fonts built inside the program. However, it would be much better if you use font aliases.

Here is what I have in my ~/.config/fontconfig/fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <alias>
    <family>serif</family>
    <prefer>
      <family>DejaVu Serif</family>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>DejaVu Sans</family>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>FiraCode Nerd Font</family>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
</fontconfig>

For instance the first alias tag maps serif to DejaVu Serif and uses Noto Color Emoji as backup.

Although, as @dudik mentioned, colored emojis have some problems in herbe.

from herbe.

btrkeks avatar btrkeks commented on July 26, 2024

Does anyone have a patch? It looks like fontconfig isn't respected for me.

from herbe.

 avatar commented on July 26, 2024

Does anyone have a patch? It looks like fontconfig isn't respected for me.

Same.

from herbe.

sonphantrung avatar sonphantrung commented on July 26, 2024

Hi folks, now that I look into my old herbe fork, there's this hacky attempt. Look at the changes to herbe.c and config.def.h files, as I made messy commits back then ;)

from herbe.

unrealapex avatar unrealapex commented on July 26, 2024

This would be also useful for users who use CJK(Chinese, Japanese, Korean) and other non Latin fonts. These characters would show up as black boxes when displayed:
$ herbe "ใ“ใซใกใ‚"

black boxes in notification box

from herbe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.