emscripten-core / emscripten-core/emscripten

How to use Module.locateFile()

Open
#14,934 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

In my project , i need use the font library. so i set --preload-file simsun.ttc.
Question : when i run the demo.html in chrome, i must put the simsun.data in the root directory of the web service, Is there any other way to specify where the simsun.data is ? Module.locateFile() can get where is simsun.data ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.