Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Creating new font texture

Discussion in 'Editor & General Support' started by DaveyJJ, May 24, 2005.

  1. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    I was able to duplicate the standard font texture file (noticing the 64x64 pixel limitation of each letter) but when I save my file out of Photoshop as a TIFF file it appears with white letters in the Unity window rather than the default black texture that correctly shows white letters. What am I doing wrong? Incorrect alpha channel or something?
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Go into the Settings for the font asset and check "Build Alpha From Grayscale". Also, make sure the texture format is set to something that has an alpha channel. That should fix it. On a side note, maybe it'd be good idea for Unity to automatically duplicate assets settings when you duplicate a file.

    I didn't know there was a letter size limit. I thought you just had to put in the correct bounds numbers for each letter. Haven't made a serious custom font yet, so I'm not sure.

    Cheers,
    -Jon
     
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Unity does duplicate settings. If it doesn't, please file a bug .

    Don't use the finder to duplicate. Instead duplicate the asset in the project view. This will duplicate all the meta data as well.

    In general when working with assets in the project folder.
    Don't move or duplicate files in the finder. Do it from inside unity.