Git Product home page Git Product logo

render-lizard's Introduction

Render Lizard

A test platform to rapidly generate snapshots of render data for font validation

Security Warning: Render Lizard has known security limitations. The save.php and save-metadata.php scripts could be misused to put arbitrary files into the data folder on your web server. Any site visitor could create or delete results. Consider yourself warned.

Sample image

Similar Tools

New 2020-08-19: See Lindenberg Software's ImageCollector for a more polished solution inspired by Render Lizard.

Setup

Data files must at present be put into the filesystem; they cannot be uploaded by the site. Data files are a simple text file format. See the sample data file in the folder data/1/.

  • The file must be called tests.txt.
  • Lines beginning with hash (#) are ignored.
  • Blank lines are ignored (including whitespace)
  • All other lines are tests.
  • # on a test line marks the start of a "note" that will be displayed in the notes column
  • Any one-word notes will be applied as a class to the test row.
  • The note valid has a CSS rule to make the row green.

Font suggestions can be specified for a test in the fonts.txt file. Each font name should be on a separate line.

Each test should be a in a folder in the data folder. Folders names must be integer values at present.

Web Server Setup

The site should be setup on a web server with PHP, with write access to the data folder (the details of this are left to you). It does not have to be a top-level folder.

Running with Docker

Instead of setting up a web server, you can also run the site in Docker.

  • Install docker (on Linux, Windows, and Mac) - https://docker.com/

  • To Start: in terminal, run docker-compose build docker-compose up -d

  • To Use: in browser, go to http://localhost/index.php?id=1

  • To Stop: in terminal, run docker-compose stop docker-compose rm -f

Accessing the site

Load index.php?id=<integer-test-id> in your browser, e.g. index.php?id=1

Using the renderer to do tests

Select the font, font size and line spacing (necessary for many Indic languages). Then click Render. A new column will be added with a .png file for each test word. The results are stored on the server, so reloading the page will keep the results. This makes testing against multiple operating systems and devices straightforward.

render-lizard's People

Contributors

chrisvire avatar mcdurdin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.