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

Cannot recognize multiple text font resolutions 1x ,2x and 4x. #158

Open
srikanth-chitturi opened this issue Jan 23, 2014 · 0 comments
Open

Comments

@srikanth-chitturi
Copy link

I have created multiple text font textures fontUnitySheet,fontUnitySheet2x,fontUnitySheet4x and set them in TextUIToolkit.

These coordinates file contains the actual font files i.e fontUnity.png and fontUnity.txt .

There was an exception ,
Exception: can't find texture details for texture packer sprite:fontUnity.png

There are no errors when run in 1x mode ,everything is working fine , but in HD mode :
The GUIButtons are selected correctly ,but the text is not being recognized.

The exception is at :
UISpriteManager.cs line08 :

public Rect frameForFilename( string filename )
{

if UNITY_EDITOR

    // sanity check while in editor
    if (!textureDetails.ContainsKey(filename))
    {
        throw new Exception("can't find texture details for texture packer sprite:" + filename);
    }

endif

    return textureDetails[filename].frame;
}

Is there any workaround for this ?

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

1 participant