htmlcss
htmlcss copied to clipboard
A lightweight HTML and CSS Parser in C
Hello! I just attempted a very basic compilation with `cl *.c -Fetesthtmlcss.exe` to see how far it would go. Turns out, very far. The only files conflicting are: ``` >...
Right now the hc_font_t API does not expose the kerning information in a font. This should be supported in a future version of the library so that per-character kerning can...
Currently the font metrics code only supports Unicode plane 0 and horizontal fonts. Should read the vmtx table, when present, and support computation of extends for vertical layout.
Need [@font-face CSS](https://www.w3.org/TR/2018/REC-css-fonts-3-20180920/) support for complete font support, including the Google fonts stuff.
Add support for W3C's [WOFF2 font format](https://www.w3.org/TR/WOFF2/), specifically for getting character/glyph widths and font style information.
Add support for the W3C's [SVG](https://www.w3.org/TR/2018/CR-SVG2-20181004/) file format, in order to get dimension information for formatting.
Extend the HTML parser to support [XHTML 2.0](https://www.w3.org/TR/2010/NOTE-xhtml2-20101216/).
Add a "device" API that abstracts away device-specific information, including: - Fonts (enumeration, selection/search, metadata, extents and kerning) - Resolution - Media type (print, screen, etc.) - Media dimensions (width/height/orientation)...