LibGDX - 无法加载FreetypeFont资产的依赖项

时间:2017-05-25 03:54:02

标签: java libgdx asset-management

您好我目前仍在尝试加载>>> from random import randint as rint >>> test_array = [rint(-100, 100) for i in range(100)] #random array to test [78, -54, -88, ...] >>> sorted(test_array) == my_array_after_testing #test if the arrays match up 字体,我收到的消息为GdxRuntimeException:anaconda3/envs/hspy/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./libc_rd_halo.so).

.ttf

1 个答案:

答案 0 :(得分:1)

load(...)上调用AssetManager方法时,传递带扩展名的fileName。 FileName应该是任何扩展名。

assetManager.load("coastershadowfont.ttf", BitmapFont.class, params); //Adds the given asset to the loading queue of the AssetManager.
assetManager.finishLoading();  // triggered to execute task

使用您在加载时指定的fileName获取BitmapFont

font= assetManager.get("coastershadowfont.ttf",BitmapFont.class);