Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CommunityEntity.UI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using UnityEngine;
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
Expand Down Expand Up @@ -995,7 +995,12 @@ private IEnumerator LoadTextureFromWWW( UnityEngine.UI.RawImage c, string p )

private Font LoadFont(string fontName)
{
var font = FileSystem.Load<Font>( "Assets/Content/UI/Fonts/" + fontName );
if (!fontName.StartsWith("assets/", StringComparison.OrdinalIgnoreCase))
{
fontName = "Assets/Content/UI/Fonts/" + fontName;
}

var font = FileSystem.Load<Font>( fontName );
if (font == null)
{
// Fallback to TMP default font if the loading failed
Expand Down