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

Arial font exception #1152

Closed
davetcoleman opened this issue Sep 27, 2017 · 10 comments
Closed

Arial font exception #1152

davetcoleman opened this issue Sep 27, 2017 · 10 comments

Comments

@davetcoleman
Copy link
Member

davetcoleman commented Sep 27, 2017

Why I would still be getting:

OGRE EXCEPTION(5:): Could not find font Arial in MovableText::setFontName

after 1) updating to the latest 16.04 debian and 2) even after building Rviz from source with this PR?

@wjwwood

@wjwwood
Copy link
Member

wjwwood commented Sep 27, 2017

You're mixing versions I guess. Can you post the ogre.log file?

@mmoerdijk
Copy link

This has to do with the widgets provided by moveit, there the Arial font is still used.

@wjwwood
Copy link
Member

wjwwood commented Sep 27, 2017

@mmoerdijk I see, that makes sense (would have seen that in the ogre.log probably).

Sorry for the disruption, but we had to exchange this font for licensing reasons, so it was unavoidable.

The fix should be as easy as updating the moveit plugin to replace any uses of Arial with Liberation Sans.

@wjwwood
Copy link
Member

wjwwood commented Sep 27, 2017

I'll close this for now.

@gavanderhoorn
Copy link
Contributor

gavanderhoorn commented Sep 28, 2017

@wjwwood: I noticed the PR that removed Arial from RViz, but a lot of devs/users probably have not. With the customisability that RViz supports through its plugins, it would probably be nice to give #1141 a bit more visibility to save people some frustration?

MoveIt is probably just one of the plugins that breaks because of this.


Edit: we're also getting questions on ROS Answers about this now: Error when trying to launch moveit created robot model. Could it be that fonts-liberation is not installed on those (Ubuntu) machines?


Edit2: the ROS Answers post appears to really be the MoveIt plugin with the issue reported by @davetcoleman.

I still think some more visibility (Discourse post?) would be good.

@wjwwood
Copy link
Member

wjwwood commented Sep 28, 2017

Could it be that fonts-liberation is not installed on those (Ubuntu) machines?

"Liberation Sans" is distributed with rviz, see: https://github.com/ros-visualization/rviz/tree/kinetic-devel/ogre_media/fonts

I still think some more visibility (Discourse post?) would be good.

I'll send a message.

@gavanderhoorn
Copy link
Contributor

gavanderhoorn commented Sep 28, 2017

Could it be that fonts-liberation is not installed on those (Ubuntu) machines?

"Liberation Sans" is distributed with rviz, see: https://github.com/ros-visualization/rviz/tree/kinetic-devel/ogre_media/fonts

the OP of the ROS Answers question implies that after installing that pkg things started working. That is unexpected then.

I'll send a message.

thanks.

@wjwwood
Copy link
Member

wjwwood commented Sep 28, 2017

That is unexpected then.

It is (unexpected), because Ogre needs to have the font on the ogre resource path and you need the Ogre specific "fontdef" as well I think:

https://github.com/ros-visualization/rviz/blob/kinetic-devel/ogre_media/fonts/liberation_sans.fontdef

Also the moveit code is still asking for Arial, not Liberation Sans, so install Arial would fix the problem, not installing liberation sans...

@wjwwood
Copy link
Member

wjwwood commented Sep 28, 2017

https://discourse.ros.org/t/notice-removal-of-arial-in-rviz-caused-breaking-changes/2791

@emila14
Copy link

emila14 commented Oct 11, 2017

Hi, how do I update the moveit plugin to replace any uses of Arial with Liberation Sans?

130s pushed a commit to 130s/rviz that referenced this issue Aug 21, 2024
…zation#1152)

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit 85bd6636c8e1d2e61668ca125f8d05ce25531fff)

Co-authored-by: Alejandro Hernández Cordero <alejandro@openrobotics.org>
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

5 participants