Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not finding any fonts #83

Open
ansel1 opened this issue Oct 30, 2024 · 3 comments
Open

Not finding any fonts #83

ansel1 opened this issue Oct 30, 2024 · 3 comments

Comments

@ansel1
Copy link

ansel1 commented Oct 30, 2024

Describe the bug
I'm using agg on MacOS (15.1 Sequoia). No matter what I set --font-family or --font-dir to, it always falls back on Arial Unicode MS.

For example:

❯ agg --font-family "Hack" --last-frame-duration 3 -v --font-dir /Users/regan/Library/Fonts out.cast cast.gif
[INFO  agg] terminal size: 97x27
[INFO  agg] selected font families: ["Hack", "Noto Emoji"]
[INFO  agg] selected theme: dracula
[INFO  agg] gif dimensions: 831x548
29 / 117 [====================================>---------------------------------------------------------------------------------------------------------------] 24.79 % 84.22/s 1s [WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to .LastResort.
30 / 117 [=====================================>--------------------------------------------------------------------------------------------------------------] 25.64 % 84.21/s 1s [WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
31 / 117 [=======================================>------------------------------------------------------------------------------------------------------------] 26.50 % 73.95/s 1s [WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to .LastResort.
[WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to Arial Unicode MS.
[WARN  usvg::text] Fallback from Hack to .LastResort.

I know I have Hack installed, and I've confirmed it's installed here: /Users/regan/Library/Fonts/Hack-Regular.ttf

I've tried it with several other font families as well. They all fall back to Arial or .LastResort.

Versions:

  • OS: macOS 15.1
  • agg: 1.5.0
@chuxubank
Copy link

chuxubank commented Nov 18, 2024

I'm facing the same problem.

You can try add --renderer fontdue to the options, and it should work, and even faster?

But I still want resvg get work.

@ku1ik
Copy link
Contributor

ku1ik commented Nov 19, 2024

@chuxubank for you this problem occurs on macOS too?

@chuxubank
Copy link

chuxubank commented Nov 19, 2024

@ku1ik Yes, macOS 15.1 (24B83)
agg 1.5.0

Converting this: https://asciinema.org/a/vSw29vD0IYyhzDPtKfVS7nsia

Details  agg -vvv --font-size 14 --rows 40 --cols 100 --theme solarized-light --font-family "JetBrains Mono NL" Term.cast Term.gif [INFO agg] terminal size: 100x40 [INFO agg] selected font families: ["JetBrains Mono NL", "DejaVu Sans"] [INFO agg] selected theme: solarizedlight [INFO agg] gif dimensions: 856x803 [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 1 / 57 [===>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 1.75 % 3.09/s 18s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 2 / 57 [======>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 3.51 % 5.41/s 10s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 3 / 57 [==========>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 5.26 % 7.19/s 8s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 4 / 57 [=============>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 7.02 % 8.59/s 6s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 5 / 57 [=================>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 8.77 % 9.66/s 5s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 6 / 57 [====================>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 10.53 % 10.09/s 5s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 7 / 57 [=======================>--------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 12.28 % 10.27/s 5s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 8 / 57 [===========================>----------------------------------------------------------------------------------------------------------------------------------------------------------------------] 14.04 % 10.55/s 5s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 9 / 57 [==============================>-------------------------------------------------------------------------------------------------------------------------------------------------------------------] 15.79 % 10.76/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 10 / 57 [=================================>---------------------------------------------------------------------------------------------------------------------------------------------------------------] 17.54 % 10.89/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 11 / 57 [=====================================>-----------------------------------------------------------------------------------------------------------------------------------------------------------] 19.30 % 10.92/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 12 / 57 [========================================>--------------------------------------------------------------------------------------------------------------------------------------------------------] 21.05 % 10.76/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 13 / 57 [============================================>----------------------------------------------------------------------------------------------------------------------------------------------------] 22.81 % 10.48/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 14 / 57 [===============================================>-------------------------------------------------------------------------------------------------------------------------------------------------] 24.56 % 10.54/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 15 / 57 [==================================================>----------------------------------------------------------------------------------------------------------------------------------------------] 26.32 % 10.66/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 16 / 57 [======================================================>------------------------------------------------------------------------------------------------------------------------------------------] 28.07 % 10.88/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 17 / 57 [=========================================================>---------------------------------------------------------------------------------------------------------------------------------------] 29.82 % 10.93/s 4s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 48 / 57 [===================================================================================================================================================================>------------------------------] 84.21 % 8.62/s 1s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 49 / 57 [======================================================================================================================================================================>---------------------------] 85.96 % 8.68/s 1s [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. [WARN usvg::text] Fallback from JetBrains Mono NL to .LastResort. 57 / 57 [====================================================================================================================================================================================================] 100.00 % 9.83/s [INFO agg] rendering finished in 5.798154s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants