这是由于配置osg时 freetype 插件没有配置到位。
我个人的解决方法
打开CMAKE,点击advance,不勾选OSG_TEXT_USE_FONTCONFIG。
同时将freetype路径设置为如下:
关于在osgearth 中 出现 arial.ttf : file not handled 的问题
原文:https://www.cnblogs.com/XiaoXiaoShuai-/p/12247425.html