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

Re-implement callbacks in JS #97

Merged
merged 9 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ "main" ]

env:
EM_VERSION: 3.1.16
EM_VERSION: 3.1.56
EM_CACHE_FOLDER: 'emsdk-cache'

jobs:
Expand All @@ -28,7 +28,7 @@ jobs:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{runner.os}}
- name: Setup Emscripten
uses: mymindstorm/setup-emsdk@v11
uses: mymindstorm/setup-emsdk@v14
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.wasm
hb.js
.DS_Store
10 changes: 7 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ em++ \
-DHB_CONFIG_OVERRIDE_H=\"config-override.h\" \
-DHB_EXPERIMENTAL_API \
--no-entry \
-s EXPORTED_FUNCTIONS=@hbjs.symbols \
-s MODULARIZE \
-s EXPORTED_FUNCTIONS=@hb.symbols \
-s EXPORTED_RUNTIME_METHODS='["addFunction", "wasmMemory", "wasmExports"]' \
-s INITIAL_MEMORY=65MB \
-o hb.wasm \
hbjs.cc
-s ALLOW_TABLE_GROWTH \
-lexports.js \
-o hb.js \
harfbuzz/src/harfbuzz.cc
2 changes: 1 addition & 1 deletion harfbuzz
Submodule harfbuzz updated 485 files
14 changes: 11 additions & 3 deletions hbjs.symbols → hb.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ _hb_buffer_destroy
_hb_buffer_get_glyph_infos
_hb_buffer_get_glyph_positions
_hb_buffer_get_length
_hb_buffer_get_content_type
_hb_buffer_guess_segment_properties
_hb_buffer_set_cluster_level
_hb_buffer_set_direction
_hb_buffer_set_flags
_hb_buffer_set_language
_hb_buffer_set_script
_hb_buffer_set_message_func
_hb_buffer_serialize_glyphs
_hb_face_create
_hb_face_collect_unicodes
_hb_face_destroy
Expand All @@ -25,17 +28,22 @@ _hb_font_destroy
_hb_font_glyph_to_string
_hb_font_set_scale
_hb_font_set_variations
_hb_font_draw_glyph
_hb_draw_funcs_create
_hb_draw_funcs_set_move_to_func
_hb_draw_funcs_set_line_to_func
_hb_draw_funcs_set_quadratic_to_func
_hb_draw_funcs_set_cubic_to_func
_hb_draw_funcs_set_close_path_func
_hb_glyph_info_get_glyph_flags
_hb_language_from_string
_hb_ot_var_get_axis_infos
_hb_script_from_string
_hb_feature_from_string
_hb_set_create
_hb_set_destroy
_hb_set_get_population
_hb_set_next_many
_hb_shape
_hbjs_glyph_svg
_hbjs_shape_with_trace
_malloc
_free
_free_ptr
261 changes: 0 additions & 261 deletions hbjs.cc

This file was deleted.

Loading
Loading