All Projects → michaelrsweet → htmlcss

michaelrsweet / htmlcss

Licence: Apache-2.0 license
A lightweight HTML and CSS Parser in C

Programming Languages

c
50402 projects - #5 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to htmlcss

Ttf Parser
A high-level, safe, zero-allocation TrueType font parser.
Stars: ✭ 221 (+513.89%)
Mutual labels:  ttf, otf
font-v
Font version string reporting and modification library + executable tool
Stars: ✭ 15 (-58.33%)
Mutual labels:  ttf, otf
beatrix
A tool to chop off useless fonts glyphs and convert TTF/OTF into WOFF & WOFF2
Stars: ✭ 22 (-38.89%)
Mutual labels:  ttf, otf
Acy-Font
自制手写字体。A hand-writing font set.
Stars: ✭ 20 (-44.44%)
Mutual labels:  ttf, otf
Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (+2530.56%)
Mutual labels:  ttf, otf
pixel font
All-in-one tool for creating TrueType outline fonts from bitmap glyph data, purely written in Elixir.
Stars: ✭ 16 (-55.56%)
Mutual labels:  ttf, otf
fontfacegen-webpack-plugin
A plugin for webpack that allows you to convert .ttf and .otf files into various other font formats such as .eot, .ttf, .svg, .woff and .woff2 using the existing NPM package fontfacegen.
Stars: ✭ 20 (-44.44%)
Mutual labels:  ttf, otf
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (+583.33%)
Mutual labels:  ttf, otf
Codeface
Typefaces for source code beautification
Stars: ✭ 5,612 (+15488.89%)
Mutual labels:  ttf, otf
Birdfont
A font editor for creating fonts in TTF, EOT, SVG and BIRDFONT format.
Stars: ✭ 272 (+655.56%)
Mutual labels:  ttf, otf
Haack
Hæck
Stars: ✭ 142 (+294.44%)
Mutual labels:  ttf, otf
FontRegister
FontRegister is a small Windows utility to install fonts and/or repair the font registry via commandline.
Stars: ✭ 17 (-52.78%)
Mutual labels:  ttf, otf
Hack
A typeface designed for source code
Stars: ✭ 14,543 (+40297.22%)
Mutual labels:  ttf
chiron-sans-hk
昭源黑體:現代筆形風格,平衡標準字形和印刷體慣用筆形的免費開源黑體字型
Stars: ✭ 131 (+263.89%)
Mutual labels:  otf
Fonteditor Core
fonteditor core functions
Stars: ✭ 207 (+475%)
Mutual labels:  ttf
lv lib freetype
Interface to FreeType to generate font bitmaps run time
Stars: ✭ 41 (+13.89%)
Mutual labels:  ttf
Web Font
字体裁剪工具
Stars: ✭ 203 (+463.89%)
Mutual labels:  ttf
Webfont
Awesome generator of webfont
Stars: ✭ 170 (+372.22%)
Mutual labels:  ttf
Webfont Generator
Locally convert fonts to web formats and generate CSS rules
Stars: ✭ 153 (+325%)
Mutual labels:  ttf
SUIT
SUIT―수트는 반복되는 노력을 기울이지 않아도 완성도 높은 형태를 유지하며, 소모적인 커뮤니케이션도 줄일 수 있도록 제작한 UI 본문용 폰트입니다.
Stars: ✭ 168 (+366.67%)
Mutual labels:  otf

HTMLCSS - Lightweight HTML/CSS Library

Version Apache 2.0 Build Coverity Scan Status LGTM Grade LGTM Alerts

HTMLCSS is a lightweight HTML/CSS parser written in C that allows applications to prepare a HTML document for rendering or conversion. HTMLCSS is extremely portable and only requires a C99 compiler like GCC, Clang, Visual C, etc. HTMLCSS is also extremely memory efficient, utilizing a shared string pool and smart CSS cache to minimize the size of a HTML document in memory.

I'm providing HTMLCSS as open source under the Apache License Version 2.0 with exceptions for use with GPL2/LGPL2 applications which allows you do pretty much do whatever you like with it. Please do provide feedback and report bugs to the Github project page so that everyone can benefit.

Features

Features include:

  • HTML 5 markup parser
  • CSS 3 stylesheet parser
  • OFC/OFF/TTC/TTF font file parser (metadata and metrics only)
  • GIF/JPG/PNG image file parser (metadata only)
  • Functions to calculate CSS properties for a given node in a HTML document
  • Functions to extract HTML "runs" consisting of CSS properties, content strings, and image references that can be rendered directly, including the :before and :after content from a stylesheet

HTMLCSS does not support dynamic HTML content created using Javascript in a HTML document, as such content is typically used for interactive web pages while HTMLCSS is intended for use with static content.

Requirements

You'll need a C99 compiler like GCC, Clang, or Visual C, along with a POSIX- compliant make program.

Building

Run make to build the library and unit test program.

Installing

Run make install to install the library and header files under /usr/local. To install in a different location, specify the "prefix" variable, e.g.:

make install prefix=/some/other/directory

Using

See the file DOCUMENTATION.md for documentation on using the library.

Legal Stuff

HTMLCSS is Copyright © 2018-2022 by Michael R Sweet.

HTMLCSS is licensed under the Apache License Version 2.0 with an exception to allow linking against GPL2/LGPL2-only software. See the files "LICENSE" and "NOTICE" for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].