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

Setting font to a button using CSS causes font errors #42

Closed
PerformanceCoder opened this issue Oct 1, 2023 · 3 comments
Closed

Setting font to a button using CSS causes font errors #42

PerformanceCoder opened this issue Oct 1, 2023 · 3 comments
Labels
upstream Probably caused by a bug in one of the C libraries wrapped by a package Windows

Comments

@PerformanceCoder
Copy link

Hi!

I'm not sure is it a bug or incorrect usage of a Gtk4.jl, but setting custom font-size to a button using CSS replaces characters with rectangles.

OS: Windows 10. Julia v1.8. MWE:

using Gtk4

css = """
button {
    font-size: 2.5em;
}
"""

win = GtkWindow("Fonts Demo", 400, 400)
cssProvider = GtkCssProvider(css)
push!(Gtk4.display(win), cssProvider)

push!(win, GtkButton("Hello, Fonts!"))
show(win)

if !isinteractive()
    c = Condition()
    signal_connect(win, :close_request) do widget
        notify(c)
    end
    @async Gtk4.GLib.glib_main()
    wait(c)
end

Illustration attached.
bug

Is it an expected behavior?

@jwahlstrand
Copy link
Member

Definitely not expected, this is a bug in one of the libraries that I've only seen on Windows. Probably the same as #32.

@jwahlstrand jwahlstrand added the upstream Probably caused by a bug in one of the C libraries wrapped by a package label Oct 16, 2023
@jwahlstrand
Copy link
Member

There is a fix in the works, see #32 (comment)

@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