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

Change fonts at runtime #30

Open
zoriya opened this issue Oct 14, 2023 · 2 comments
Open

Change fonts at runtime #30

zoriya opened this issue Oct 14, 2023 · 2 comments

Comments

@zoriya
Copy link
Contributor

zoriya commented Oct 14, 2023

We can use addFont to make a new font available, but we can't remove fonts that won't be used anymore to free resources.
Right now, I am doing this to change fonts but old one are still taking some RAM:

if (fonts) {
	for (const font of fonts) {
		subOcto.addFont(font);
	}
}
@ThaUnknown
Copy link
Owner

i never added it because i honestly have no clue how to remove fonts from libass safely x)

@zoriya
Copy link
Contributor Author

zoriya commented Oct 14, 2023

Okay, I guess fonts are not big enough to be a bother anyway, thanks for the feedback

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