Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GtkLabel markup can't display characters #32

Closed
Rratic opened this issue Jun 24, 2023 · 4 comments
Closed

GtkLabel markup can't display characters #32

Rratic opened this issue Jun 24, 2023 · 4 comments
Labels
upstream Probably caused by a bug in one of the C libraries wrapped by a package Windows

Comments

@Rratic
Copy link

Rratic commented Jun 24, 2023

label = GtkLabel("")
Gtk4.markup(label, """<span size="x-large">A</span>""")

A displays as a small box with four hex digits

environment:

julia> versioninfo()
Julia Version 1.9.1
Commit 147bdf428c (2023-06-07 08:27 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(@v1.9) pkg> st Gtk4
Status `C:\Users\anonymous\.julia\environments\v1.9\Project.toml`
  [9db2cae5] Gtk4 v0.4.1
@Rratic
Copy link
Author

Rratic commented Jun 24, 2023

I don't know what's wrong but now all the texts display as small box with four hex digits

@jwahlstrand
Copy link
Member

It works correctly for me on Linux, but I also see the boxes on Windows. Seems likely to be an upstream issue -- I'll try updating Pango_jll.

@jwahlstrand
Copy link
Member

Updating HarfBuzz_jll, a dependency of Pango_jll and GTK4_jll, fixes this. There is a PR: JuliaPackaging/Yggdrasil#8392

Until that goes through (and a few other PR's that will be necessary to allow that version of HarfBuzz to be used by other JLL's), here is a way to use updated JLL's:

using Pkg

Pkg.add(url="https://github.com/jwahlstrand/libass_jll.jl")
Pkg.add(url="https://github.com/jwahlstrand/Pango_jll.jl")
Pkg.add(url="https://github.com/jwahlstrand/HarfBuzz_jll.jl")

@jwahlstrand
Copy link
Member

Fixed by JuliaPackaging/Yggdrasil#8392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Probably caused by a bug in one of the C libraries wrapped by a package Windows
Projects
None yet
Development

No branches or pull requests

2 participants