-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
Hi,
Thanks for the note. In case my email address is mangled by reply, here it
is: ***@***.***
It looks like Manjaro might be some sort of desktop environment.
Can you tell me: what kind of Unix are you running (Ubuntu, Fedora,
whatever); what version; and exactly what error message you got (maybe a
screenshot). Too much information is so much better than not enough!
Unix is hard and I don't know for sure if I can advise you -- I suggest
Unix only for experts -- but I'm willing to give it a shot.
Best,
W Briggs
…On Wed, May 19, 2021 at 2:14 PM Ishank Sharma ***@***.***> wrote:
Hi getting this error on ./runx.
System - Manjaro Latest
Checked the packages are installed and did the appendix A thing. Please
help
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQOYZS7WMF5R4SIUM3EJLLTOP5XBANCNFSM45FGZBQQ>
.
|
Hi @briggs-w , |
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. |
OK, this helps. Distributions of Unix disagree on where to keep their
fonts, including msttcore-fonts. (I'm assuming you have installed
msttcore-fonts.) So we have to find out where yours keeps these fonts. This
might work:
cd /
find . -name arial.ttf -print > ~/wheres-arial
cat wheres-arial
Then we have to tell SSDL where to look for fonts. (The fact that you're
not using any fonts at the moment doesn't matter; SSDL always wants to have
its default font ready.) When we find that directory, I can tell you how to
do this.
I am working on a patch that will make it a little easier to do this, but
it's never going to be trivial. The problem is that all these different
types of Unix put fonts in different places, and AFAIK there's no
environment variable available to C++ that tells us where that folder is.
But we can definitely patch this.
Best,
W Briggs
…On Thu, May 20, 2021 at 2:17 AM Ishank Sharma ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQOYZRTMWY2SWL3HG4XBLTTOSSRFANCNFSM45FGZBQQ>
.
|
so the absolute path is /usr/share/fonts/arial/arial.ttf |
I don't see msttcore-fonts in the directory listing you showed, and that's
going to be a problem if you try to use system fonts using
SSDL_OpenSystemFont. This function is used in ch1/test-setup,
ch1/7-quotation, ch12/2-aliensBuzzOurWorld, and ch7/5-comic. So those
examples aren't going to work without msttcore fonts.
If you skip those examples, you can fix the problem by changing this line
#define FONT_PATH "/usr/share/fonts/truetype/msttcorefonts/"
to this
#define FONT_PATH "/usr/share/fonts/arial/"
in external/SSDL/include/SSDL_Font.h, and recompiling.
Then your test program will compile, and other sample programs.
However, what's best is if you use Microsoft Core fonts, because then those
programs will work, too.
If you have not installed them, this page
https://forum.manjaro.org/t/solved-installing-microsoft-fonts/45709/2
suggests it takes these two commands to install it in Manjaro:
pamac upgrade -a
pamac build ttf-ms-fonts
If you *have* installed them, I wonder if they might be in the TTF folder I
saw in your screenshot: /usr/share/fonts/TTF/msttcorefonts, perhaps? If
so, that's the path we need. Confirm that's your path and I will send you
an updated SSDL_Font.h just for your installation (you'll need to email me
so I can send an attachment if we do it that way: briggs dot double u at
lynchburg dot edu).
What were the results when you ran those commands I suggested earlier
find . -name arial.ttf -print > ~/wheres-arial
cat wheres-arial
?
Why not send me those results?
If the result doesn't show anything related to microsoft or msttcore or
something like that, msttcorefonts must not be installed. If it does, we
can use that path in the line above instead of /usr/share/fonts/arial/,
and all examples should work.
If I have a chance, I will install Manjaro myself over the weekend.
Also, if you have Chrome, I can connect to your computer remotely and try
getting the info I need to establish the correct font path, at some time
when we are both available. My email address is in the repository in
HOW_TO_CONTACT_AUTHOR.txt.
Best,
W Briggs
…On Fri, May 21, 2021 at 12:40 AM Ishank Sharma ***@***.***> wrote:
so the absolute path is /usr/share/fonts/arial/arial.ttf
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQOYZTDHPTEA5JN7N2A6YTTOXP3HANCNFSM45FGZBQQ>
.
|
I have installed Manjaro locally to test it, and I've found where msttcore
fonts go.
To be sure you have the msttcore fonts installed, please see item #6 on
this page:
https://www.fosslinux.com/46741/things-to-do-after-installing-manjaro.htm .
It tells you how to install msttcore fonts, and it worked for me.
The path for the fonts is /usr/share/fonts/TTF. So to fix the problem
change this line in external/SSDL/include/SSDL_Font.h
#define FONT_PATH "/usr/share/fonts/truetype/msttcorefonts/"
to this
#define FONT_PATH "/usr/share/fonts/TTF/"
and because Manjaro is inconsistent in its capitalization, change this line
in external/SSDL/src/SSDL_display.cpp
std::string filename = "arial.ttf"; //...
to this
std::string filename = "Arial.TTF"; //...
and recompile.
About that last bit: Manjaro capitalizes the fonts names inconsistently
(Arial.TTF, courbd.ttf). In ch1/test-setup, ch1/7-quotation, ch7/5-comic,
and ch12/2-aliensBuzzOurWorld, you may also need to change the
capitalization of a loaded msttcore font to the capitalization Manjaro has;
check the folder to see what it is. (Sometimes Unix programs don't
rigorously check capitalization, but often they do.)
I will plan to add Manjaro to my list of supported systems this summer, but
this should get you going right now.
Let me know if you continue to have a problem.
Best,
W Briggs
|
HI @briggs-w, |
Hi, "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: What I tried so far:
Got the same error. I copied the font files to the /usr/share/fonts/truetype/msttcorefonts/ 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. Still, I will want to continue with the book as I haven't been able to move on with the initial setup. After all, I think a motivated wannabe programmer is not that lazy :) |
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/ Best, |
I installed Pop!OS today and tested a solution that worked. I don't want to
make it a general solution, but I think it will get you going; drop me a
line and I will send you the files you need. Best, W Briggs
…On Wed, Oct 6, 2021 at 1:11 PM Many ***@***.***> wrote:
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 :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQOYZUL2E5G7WY5SCE52FTUFR7LRANCNFSM45FGZBQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
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
|
Hi,
I will upgrade to 21.10 and see if I can duplicate your error. Meanwhile,
please respond to the email address you'll find
in HOW__TO_CONTACT_AUTHOR.txt, in the code repository, so we can more
easily communicate.
Thanks,
W Briggs
…On Wed, Nov 3, 2021 at 3:09 AM matrix-wrangler ***@***.***> wrote:
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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQOYZT45VJPXXPNMTY7DLLUKDU3HANCNFSM45FGZBQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi,
I upgraded to the latest Ubuntu and reinstalled everything relevant. I
can't duplicate your problem.
But we can still fix it. Look in GettingStarted.txt and do the paragraph
that starts with "Note to Unix users." You'll need the path to where the
fonts from ttf-msttcorefonts-installer are installed. The question is,
where are they?
* If they don't exist, ttf-mscorefonts-installer didn't work. So you'll
have to make sure it does.
* If they exist, you need to know where. This command works on my Ubuntu
machine, though it is slow:
find / -iname "arial.ttf"
That should get you what you need.
Best,
W Briggs
…On Wed, Nov 3, 2021 at 8:56 AM Briggs, Will ***@***.***> wrote:
Hi,
I will upgrade to 21.10 and see if I can duplicate your error. Meanwhile,
please respond to the email address you'll find
in HOW__TO_CONTACT_AUTHOR.txt, in the code repository, so we can more
easily communicate.
Thanks,
W Briggs
On Wed, Nov 3, 2021 at 3:09 AM matrix-wrangler ***@***.***>
wrote:
> 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
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALQOYZT45VJPXXPNMTY7DLLUKDU3HANCNFSM45FGZBQQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
|
In Manjaro, it is now possible to |
Hi getting this error on ./runx.
System - Manjaro Latest
Checked the packages are installed and did the appendix A thing. Please help
The text was updated successfully, but these errors were encountered: