canvas_ity VS Ultralight

Compare canvas_ity vs Ultralight and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
canvas_ity Ultralight
7 53
318 4,597
- 0.3%
2.5 2.9
2 months ago 12 days ago
C++ CMake
ISC License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

canvas_ity

Posts with mentions or reviews of canvas_ity. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-01.
  • Writing a TrueType font renderer
    9 projects | news.ycombinator.com | 1 Jan 2024
    I have a small TTF implementation that's in the neighborhood of that size and is open source. It's part of my canvas_ity single-header library [0] that's around 2300 LOC / 36 KB object size and implements a C++ version of most of the 2D HTML5 canvas spec [1].

    The core implementation of the TTF parsing and drawing is in L1526-L1846 with another small bit at L3205-L3274 of src/canvas_ity.hpp.

    It's something of a toy implementation that only supports western left-to-right text, and doesn't do any hinting at all, nor kerning, nor shaping. But it's enough to draw a basic "Hello world!" using any typical TTF file.

    The test suite in test/test.cpp L84-304 embeds a few custom Base64-encoded TTF files. They're small and only have a few glyphs but they do exercise a number of interesting edge cases in the OpenType TTF spec [2]. Have a look at the HTML5 port of the test suite at test/test.html in different browsers to see how their canvas implementations render those fonts.

    [0] https://github.com/a-e-k/canvas_ity

    [1] https://www.w3.org/TR/2015/REC-2dcontext-20151119/

    [2] https://standards.iso.org/ittf/PubliclyAvailableStandards/c0...

  • The Lone Developer Problem
    3 projects | news.ycombinator.com | 27 Feb 2023
    Agreed, that sort of documentation is pure gold when done well.

    It's something I always try to pay forward by doing in my own code. For example, one of my own solo projects was an STB-style single-header -like rasterizer library for C++. I started the implementation half of the library with a short outline of the rendering pipeline's dataflow and the top-level functions responsible for each stage:

    https://github.com/a-e-k/canvas_ity/blob/f32fbb37e2fe7c0fcae...

  • Ask HN: What have you created that deserves a second chance on HN?
    44 projects | news.ycombinator.com | 26 Jan 2023
    https://github.com/a-e-k/canvas_ity

    This is an STB-style single-header C++ library with no dependencies beyond the standard C++ library. In about 2300 lines of 78-column code (not counting blanks or comments), or 1300 semicolons, it implements an API based on the basic W3C specification to draw 2D vector graphics into an image buffer:

    - Strokes and fills (with antialiasing and gamma-correct blending)

    - Linear and radial gradients

    - Patterns (with repeat modes and bi-cubic resampling)

    - Line caps and line joins (handling high curvature)

    - Dash patterns and dash offsets

    - Transforms

    - Lines, quadratic and cubic Beziers, arcs, and rectangles

    - Text (very basic, but does its own TTF font file parsing!)

    - Raster images (i.e., sprites)

    - Clipping (via masking)

    - Compositing modes (Porter-Duff)

    - Drop shadows with Gaussian blurs

    I also uncovered a number of interesting browser quirks along the way with the HTML5 port of my testing suite.

  • Hello, PNG
    13 projects | news.ycombinator.com | 18 Jan 2023
  • A tiny, single-header -like 2D rasterizer for C++
    1 project | news.ycombinator.com | 10 Oct 2022
  • canvas_ity - A tiny, single-header <canvas>-like 2D rasterizer
    2 projects | /r/cpp | 10 Oct 2022
    Repository: https://github.com/a-e-k/canvas_ity
  • Show HN: Canvas_ity – A tiny, single-header -like 2D rasterizer for C++
    1 project | news.ycombinator.com | 9 Oct 2022

Ultralight

Posts with mentions or reviews of Ultralight. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-01.
  • Ultralight: Display Web-Content Everywhere
    1 project | news.ycombinator.com | 10 Feb 2024
  • Writing a TrueType font renderer
    9 projects | news.ycombinator.com | 1 Jan 2024
    [2] https://ultralig.ht/
  • This year in Servo: over 1000 pull requests and beyond
    9 projects | news.ycombinator.com | 18 Dec 2023
  • Arc browser launches its Windows client in beta
    1 project | news.ycombinator.com | 13 Dec 2023
    Web rendering would be Blink, with V8 being the JavaScript engine. I believe they have their own UI rendering process.

    I know of another company that does something similar for the UI process, but with WebKit instead as the base:

    https://github.com/ultralight-ux/ultralight#rocket-dual-high...

  • Ode to the M1
    6 projects | news.ycombinator.com | 12 Aug 2023
    What I'd really like to see with CEF et al, is JS being dropped, in favor of directly controlling the DOM from the host language. Then we could, for example, write a Rust (or Kotlin, Zig, Haskell, etc) desktop application that simply directly manipulated the DOM, and had it rendered by a HTML+CSS layout engine. Folks could then write a React-like framework for that language (to help render & re-render the DOM in an elegant way).

    Ultralight (https://ultralig.ht/) looks pretty cool. I think another possible option is Servo (https://github.com/servo/servo) – it was abandoned by Mozilla along with Rust during their layoffs a while back (but the project still seems to have a decent bit of activity). It would be great if some group of devs could revive the project, or a company could fund such a revival.

    Eventually, we'll need to reflect on, and explore whether HTML+CSS is really the best way to do layout, and we could maybe perhaps consider proting the Android/iOS layout approach over to desktop.

  • Anselm's Jazz Distributed Infrastructure Framework
    1 project | /r/Citybound | 27 Jun 2023
    I'm curious if the project will be open-source or do you have plans to go the Awesomium/Ultralight route with both open/closed sources and volume licenses? Or do you plan to offer commercial support services like other open source software?
  • Best cross-platform (Win, Mac, Linux) desktop frameworks?
    1 project | /r/CodingHelp | 21 Jun 2023
    I’m not tied to any language, but it needs to be able to wrap a c++ library. I started with .NET 7 MAUI - no linux support & very mobile focused. Tried out Electron. Wins on ease and usability, but has massive overhead. (Basic “Hello world” executable compiled to over 200mb) I then discovered Ultralight (https://ultralig.ht/). Big win on size, but was last updated 3 years ago.
  • Remember when this was 0% and 70 mb? This is comical.
    2 projects | /r/discordapp | 15 Jun 2023
    tauri exists or if you wanted to ultralig.ht
  • Digital Audio Workstation Front End Development Struggles
    16 projects | news.ycombinator.com | 15 May 2023
    I agree web stuff is really the best way to develop UIs. Good luck making responsive stuff in C++ for example. The paradigm of HTML, CSS, and JS is extremely powerful and even allows you to use canvas, webgpu, wasm.

    There are multiple commercial projects that use web dev paradigm for GUIs:

    https://coherent-labs.com/

    https://ultralig.ht/

    https://sciter.com/

  • what do you think about alternative browser engines?
    5 projects | /r/browsers | 28 Mar 2023
    Nice review, thanks! There are also: Ultralight (based on Webkit), LiteHTML, Tkhtml3 and Lobo Evolution. See also timeline of web engines.

What are some alternatives?

When comparing canvas_ity and Ultralight you can also consider the following projects:

nanovgXC - Lightweight vector graphics library implementing exact-coverage antialiasing in OpenGL

webview - Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows).

tinf - Tiny inflate library (inflate, gzip, zlib)

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.

Tephra - A modern, high-performance C++17 graphics and compute library based on Vulkan

qt-ultralight-browser - Ultra-lightweight web browser based on Qt Ultralight webview, powered by Ultralight HTML renderer

art - @Bigfan/art is a React custom renderer for HTML5 Canvas.

wry - Cross-platform WebView library in Rust for Tauri.

osxphotos - Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.

ClassicUO - ClassicUO - an open source implementation of the Ultima Online Classic Client.

fpng - Super fast C++ .PNG writer/reader

litehtml - Fast and lightweight HTML/CSS rendering engine