Skip to content

OS font lookup not working for some text #6016

@dweymouth

Description

@dweymouth

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

The ability to look up suitable fonts from the OS to display glyphs not in the bundled font works well for most text (including CJK), but there are still some strings that don't work with this and display the ? box placeholder glyph even if fonts are available on the OS to display them properly.

For more context see dweymouth/supersonic#756

How to reproduce

Run the example code

Screenshots

No response

Example code

package main

import (
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Hello World")

	w.SetContent(widget.NewLabel("𝕿𝖍𝖊 𝕸𝖆𝖑𝖉𝖔𝖗𝖔𝖗 𝕮𝖍𝖆𝖓𝖙𝖘: 𝕺𝖑𝖉 𝕺𝖈𝖊𝖆𝖓"))
	w.ShowAndRun()
}

Fyne version

develop

Go compiler version

1.25

Operating system and version

macOS

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions