Skip to content

Use asset host for loading fonts #1036

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

Merged
merged 1 commit into from
Aug 11, 2025
Merged

Conversation

Sunwuyuan
Copy link

@Sunwuyuan Sunwuyuan commented Aug 7, 2025

Closes #1034

Resolves

Proposed Changes

It adds this.AssetType.Font to the configuration of this.addWebStore, which will make it attempt to load font files from the file

Reason for Changes

Some websites' backends allow users to upload font files, so if the work contains font files, they will attempt to read them. If the website does not support this feature, font files will not appear in the artwork

Test Coverage

Please show how you have added tests to cover your changes

Browser Coverage

Check the OS/browser combinations tested (At least 2)

Mac

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

@Rundll86
Copy link

Rundll86 commented Aug 7, 2025

发来贺电

@GarboMuffin GarboMuffin changed the title Update storage. js to address the issue of font file loading Use assetHost for loading fonts Aug 11, 2025
@GarboMuffin GarboMuffin changed the title Use assetHost for loading fonts Use asset host for loading fonts Aug 11, 2025
@GarboMuffin GarboMuffin merged commit fb4b567 into TurboWarp:develop Aug 11, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

Turbowarp seems to have never attempted to read font files from assetshost
3 participants