js_of_ocaml icon indicating copy to clipboard operation
js_of_ocaml copied to clipboard

implement a wrapper of CSS Font Loading API

Open mesmerizingwaft opened this issue 10 months ago • 0 comments

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 fonts to Dom_html.document to return FontFaceSet
  • examples/css_font_load

Note

  1. Hi. This is my first PR on this repo. Let me know if anything is missing in this PR.

  2. 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?

mesmerizingwaft avatar Feb 11 '25 17:02 mesmerizingwaft