Search Unity

[SOLVED] Preferred Vertical Size not Working with Custom Bitmap Font

Discussion in 'UGUI & TextMesh Pro' started by enchiridion, Feb 6, 2017.

  1. enchiridion

    enchiridion

    Joined:
    Oct 29, 2014
    Posts:
    57
    I have been using Content Size Fitter for my custom bitmap font with preferred horizontal size and it's been working fine, but I did not realise that the preferred vertical size was not working.

    Any ideas why this is?

    EDIT:
    I solved this. The issue is that the preferred height does not include the line spacing. Definitely a bug, but I just wrote a tiny script to add the line spacing to the preferred height.
     
    Last edited: Feb 7, 2017
    litefeel likes this.