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

Miss font loading takes a lot of time #30

Closed
Hammster opened this issue Mar 17, 2022 · 2 comments
Closed

Miss font loading takes a lot of time #30

Hammster opened this issue Mar 17, 2022 · 2 comments

Comments

@Hammster
Copy link
Contributor

Hammster commented Mar 17, 2022

Hi there,

I had some fun getting mlvwm running on Windows 10 via WSL and vcxsrv, but this issue isn't related to the OS.

Most things worked just as expected, but when I tried setting up the font's for the menu bar etc. I got stuck for a while until it checked for every single encoding (maybe related to #19), gave an error msg, including the acoustic ping. I think this behaviour can be improved, and it would also make sense to add the output to the -debug stream.

This should be the section of code responsible for this.

mlvwm/mlvwm/config.c

Lines 580 to 585 in 7a3daae

newfont = XCreateFontSet( dpy, fontname, &miss, &n_miss, &def );
if( n_miss>0 ){
for( lp=0; lp<n_miss; lp++ )
DrawErrMsgOnMenu( "Load miss font ", miss[lp] );
XFreeStringList( miss );
}

If I find the time, I'm going to do a PR, but it's worth creating an issue for the suggestion anyway.

Cheers

@morgant
Copy link
Owner

morgant commented Mar 17, 2022 via email

@morgant
Copy link
Owner

morgant commented Aug 25, 2024

Again, many thanks to @Hammster for the fix in PR #31, which has now been merged and resolves this issue!

@morgant morgant closed this as completed Aug 25, 2024
morgant added a commit that referenced this issue Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants