js_of_ocaml
js_of_ocaml copied to clipboard
implement a wrapper of CSS Font Loading API
Summary
This PR partially adds a wrapper of CSS Font Loading API
This PR includes:
css_font_load.ml(i): actual implementation of the wrapper- adding a property
fontstoDom_html.documentto returnFontFaceSet examples/css_font_load
Note
-
Hi. This is my first PR on this repo. Let me know if anything is missing in this PR.
-
I didn't include a test for this feature because it seems the font loading API is not working on test codes in a straightforward manner (which may require stub or something of FontFaceSet) Do you guys have any idea to handle this?