Archie3d / juce_litehtml

Litehtml HTML/CSS rendering engine with JUCE backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JUCE litehtml

This is a JUCE module that provides integration of the litehtml HTML/CSS rendering engine with JUCE backend.

screenshot

The web pages can be loaded from network (via http:// or https://), but also locally, from a file (using file:// scheme) or JUCE application or plugin binary resources (res:// scheme).

This module also attempts to add JavaScript support on top of the litehtml using quickjs interpreter.

Litehtml offers rather limited capabilities, but it is good enough to render rich documents, which can be useful, for example, to show help pages or documentation within JUCE applications or plugins.

This project is WIP.

Compilation

This module must be used via CMake (cannot be used from Projuces because of additional targets that need to be compiled).

Add JUCE and juce_litehtml submodules to your project, and then link additional juce::juce_litehtml library on your target:

add_subdirectory(JUCE)
add_subdirectory(juce_litehtml)

target_link_libraries(${TARGET}
    PRIVATE
        juce::juce_core
        juce::juce_data_structures
        juce::juce_gui_basics

        juce::juce_litehtml

        juce::juce_recommended_config_flags
)

See the test project for an example.

About

Litehtml HTML/CSS rendering engine with JUCE backend.


Languages

Language:C 86.4%Language:C++ 10.6%Language:Ragel 2.9%Language:CMake 0.1%