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

Error setup : missian arial.ttf ? Are Fonts installed #2

Open
ishank-s opened this issue May 19, 2021 · 17 comments
Open

Error setup : missian arial.ttf ? Are Fonts installed #2

ishank-s opened this issue May 19, 2021 · 17 comments

Comments

@ishank-s
Copy link

Hi getting this error on ./runx.
System - Manjaro Latest
Checked the packages are installed and did the appendix A thing. Please help

@briggs-w
Copy link
Collaborator

briggs-w commented May 19, 2021 via email

@ishank-s
Copy link
Author

Hi @briggs-w ,
Thanks for the quick reply here are some supporting details.
Manjaro is an Arch based ditribution of GNU/Linux with aur as package manager.
I have already checked that all the SDL dev libs mentioned in Appendix A are installed.
image

@ishank-s
Copy link
Author

i tried removing everything except a printf. Still, this error comes up. The weird thing the font mentioned is not even used in the code.

@briggs-w
Copy link
Collaborator

briggs-w commented May 20, 2021 via email

@ishank-s
Copy link
Author

Systems fonts are located in /usr/share/fonts
image
As you can see i have it showing up in my font manager.That means the fonts are cached and available as well.

@ishank-s
Copy link
Author

so the absolute path is /usr/share/fonts/arial/arial.ttf

@briggs-w
Copy link
Collaborator

briggs-w commented May 21, 2021 via email

@briggs-w
Copy link
Collaborator

briggs-w commented May 25, 2021 via email

@ishank-s
Copy link
Author

HI @briggs-w,
I had to send my device back as I recently changed jobs, will update you when i install it again.
Regards,

@usmany
Copy link

usmany commented Oct 6, 2021

Hi,
I have been trying to run the first test (ch1/test-setup) without success.
I have the same problem with the font path.
I get the followint message after ./runx:

"Missing arial.ttf font. Either msttcore fonts aren't installed or the path to them is unknown. If it's the path (on Unix), see SSDL_Display for where to add it (search for this message)."

Context:
I am using Pop!_OS 21.04 which is based on Ubuntu.
As for the instructions on the Appendix A I installed the ttf-mscorefonts-installer before running the test.
I checked the SSDL_Display file and found the ubuntu path and then checked the path on my computer.
The font directory was there but empty. So no fonts to display.
I checked to find the font and it was in the /usr/share/fonts/msttcore/ directory

What I tried so far:

  1. I remove the repo
  2. reclone it
  3. modified the SSDL_Display file to match the font path with the path on my computer
  4. rebuild it
  5. re ran it

Got the same error.

I copied the font files to the /usr/share/fonts/truetype/msttcorefonts/
updated the font cache
repeated the steps 1, 2, 4 and 5

Got the same error.

I reinstalled the msttcorefonts and did all again from scratch.

Got the same error.

Apparently there is a problem with that package. I also think the overall inconsistency of the Linux Distributions on how to handle those pain in the ass MS fonts does not help at all.
I will suggest not to find a solution for that and just try to use another source for fonts if that is possible.

Still, I will want to continue with the book as I haven't been able to move on with the initial setup.
So, any help will be very appreciated.

After all, I think a motivated wannabe programmer is not that lazy :)

@briggs-w
Copy link
Collaborator

briggs-w commented Oct 6, 2021

usmany, can you contact me through the email you'll find in HOW__TO_CONTACT_AUTHOR.txt? I want to set up a time to look at your problem using Chrome Remote Desktop.

Also, I am currently installing Pop!OS on a VirtualBox to see if I can duplicate the problem. But y'know how slow that can be ---

You might also try copying arial.ttf to these directories -- maybe one of them will work -- creating the directories as needed:

/usr/share/fonts/truetype/msttcorefonts/
/usr/share/fonts/msttcore/
/usr/share/fonts/truetype/
/usr/share/fonts/msttcorefonts/
/usr/share/fonts/TTF/

Best,
W Briggs

@briggs-w
Copy link
Collaborator

briggs-w commented Oct 6, 2021 via email

@matrix-wrangler
Copy link

matrix-wrangler commented Nov 3, 2021

Running Ubuntu version 21.10 and had the same error "Error setup : missian arial.ttf ? Are Fonts installed" while running the test code ./runx

following package installed the required mscore fonts

sudo apt install ttf-mscorefonts-installer

@briggs-w
Copy link
Collaborator

briggs-w commented Nov 3, 2021 via email

@briggs-w
Copy link
Collaborator

briggs-w commented Nov 3, 2021 via email

@guyeatspants
Copy link

sudo apt install ttf-mscorefonts-installer works well to fix the error on ubuntu 21+

@sunshaoce
Copy link

In Manjaro, it is now possible to sudo mv /usr/share/fonts/TTF/Arial.TTF /usr/share/fonts/TTF/arial.ttf to resolve the SSDL_DISPLAY issue.

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

6 participants