Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Fonts look low res on WebGL builds, even with TextMeshPro

Discussion in 'WebGL' started by GrindstoneCowboy, May 1, 2020.

  1. GrindstoneCowboy

    GrindstoneCowboy

    Joined:
    Dec 3, 2018
    Posts:
    1
    The WebGL build of my app looks low res, especially fonts. Here's how it looks:


    https://imgur.com/a/pw1XJcW

    I know WebGL is janky, but I'd like to have a web build available. The Android and iOS builds look fine, so I can't figure out the problem.

    The app itself is small, very simple trivia game with just a few basic UI sprites.

    Here's what I've done:

    - Switched all text to TextureMeshPro
    - Ramped up Quality on WebGLBuild Settings
    - Tried the various WebGL assets on the Unity store for retina displays
    - Switched the camera to Pixel Perfect
    - Tried a lot of resolutions in the player settings

    And it still looks like Windows 95.

    Is there something I'm missing?
     
  2. acr1378

    acr1378

    Joined:
    Dec 4, 2014
    Posts:
    76
    Is it just the TMPro textures that are blurry or everything?

    If the latter, and you are using a version below 2019.3, try this asset.

    2019.3 added support for high resolution out of the box.
     
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,877
    Sorry for the reviving an old post but I am also having this issue, does any one have any idea what to try?
     
    DungDajHjep likes this.
  4. blacksp1der

    blacksp1der

    Joined:
    Dec 11, 2007
    Posts:
    76
    This is related to the screen resolution. if you increase the browser window screen everything is start looking good. so we need to find a way to force unity to render the canvas using a high pixel count.
     
    DungDajHjep likes this.
  5. blacksp1der

    blacksp1der

    Joined:
    Dec 11, 2007
    Posts:
    76
    Try to don't use dynamic font and set a high value for your font size