hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

FreeTypeFontGenerator failed to generate Font #1084

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I try to generate chinese charactor font by following code:
        FreeTypeFontGenerator generator = new FreeTypeFontGenerator(
                Gdx.files.internal("data/fonts/FZYTK.TTF"));
        font = generator.generateFont(22, "我爱你123", false);
        generator.dispose();

The problem of Output is:
1).The Desktop App is OK on 64-bit Win7 Operating System while crashed on 32bit 
Win7 Operating System, with following consloe output:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000c, pid=7456, tid=7584
#
# JRE version: 6.0_32-b05
# Java VM: Java HotSpot(TM) Client VM (20.7-b02 mixed mode, sharing windows-x86 
)
# Problematic frame:
# C  0x0000000c
#
# An error report file with more information is saved as:
# E:\workspace\fonttest\fonttest-desktop\hs_err_pid7456.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
AL lib: alc_cleanup: 1 device not closed

2).The Android app is OK on real Android Device, but show nothing on Vertual 
Android Device.

Hope you can fixed this problem, Thanks!
Detail information you can reference the attatched sample code and log file.

Original issue reported on code.google.com by seker2...@gmail.com on 17 Oct 2012 at 2:36

Attachments:

GoogleCodeExporter commented 9 years ago
ligbdx version: 2012.10.11, libgdx-nightly-latest.zip

Original comment by seker2...@gmail.com on 17 Oct 2012 at 6:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was able to reproduce this with your projects, but unable to reproduce it 
when i linked the latest gdx-freetype-(natives).jar and gdx-natives.jars to the 
desktop project. 

Please update to the latest nightlies and make sure you replace ALL the jar 
files and the .so files in your Android project's libs/armeabi and 
libs/armeabi-v7a folders.

Original comment by badlogicgames on 3 Nov 2012 at 12:06