GithubHelp home page GithubHelp logo

himsoklong / render-lizard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcdurdin/render-lizard

0.0 0.0 0.0 176 KB

Render sample texts rapidly across multiple browsers and platforms

License: MIT License

Shell 11.73% JavaScript 47.89% PHP 33.15% CSS 3.72% Dockerfile 3.51%

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 with filename.ttf,facename, one on each line.

The fonts should be included in the same folder as fonts.txt.

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

Running with Docker

You can run the site in Docker.

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

mcdurdin avatar chrisvire avatar darcywong00 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.