Add possibility to dynamically load custom fonts for fallback fonts · Issue #73 · PolyModdingTeam/PolyMod · GitHub
Skip to content

Add possibility to dynamically load custom fonts for fallback fonts #73

Open

Description

@johnklipi

If the character is not supported by current polytopia font, use the generic one

Activity

  1. IExploitableMan commented on Apr 23, 2025

    @IExploitableMan
    Contributor

    Unity has a default fallback font list afaik

  2. johnklipi commented on Apr 23, 2025

    @johnklipi
    MemberAuthor

    Uhhh, I dunno. All characters which are not in current custom poly font just show up as rectangles. I want to make so all of those character revert to original Josefin Sans instead of Midjiwan modified one (if they dont exist in Midjiwan's) (Because actual Josefin Sans supports much more characters)

  3. IExploitableMan commented on Apr 23, 2025

    @IExploitableMan
    Contributor

    Got it!
    https://docs.unity3d.com/6000.0/Documentation/Manual/UIE-fallback-font.html
    Maybe all fonts in fallback list also does not support this symbol 😆

  4. johnklipi commented on Apr 23, 2025

    @johnklipi
    MemberAuthor

    Or maybe the fallback font is not set

  5. added this to the 1.2 milestone on Apr 26, 2025
  6. IExploitableMan commented on Apr 28, 2025

    @IExploitableMan
    Contributor
    Console.WriteLine(textComponent.font.name);
    Console.WriteLine(textComponent.font.fallbackFontAssets.Count);
    foreach (var asset in textComponent.font.fallbackFontAssets)
    {
        Console.WriteLine(asset.name);
    }
    JosefinSans-Italic
    0

    You were right! Fallback fonts are not set...

  7. removed this from the 1.2 milestone on May 5, 2025
  8. johnklipi commented on Aug 11, 2025

    @johnklipi
    MemberAuthor

    As unstrip is slowly being fixed, that means it is still possible.

  9. added this to the 1.3 milestone on Aug 11, 2025
  10. self-assigned this
    on Aug 11, 2025
  11. modified the milestones: 1.3, 1.2 on Aug 13, 2025
  12. changed the title [-]Add generic fonts for characters without one[/-] [+]Add possibility to dynamically load custom fonts for fallback fonts[/+] on Aug 13, 2025
  13. johnklipi commented on Sep 11, 2025

    @johnklipi
    MemberAuthor

    I... couldnt find a way to dynamically load font. @IExploitableMan any ideas?

  14. johnklipi commented on Sep 12, 2025

    @johnklipi
    MemberAuthor

    Wont work due to not yet fixed bepinex, waiting for fix

  15. removed this from the 1.2 milestone on Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions