1
1
Fork
You've already forked glyphus
0
Procedurally generated glyphs
  • JavaScript 75.4%
  • CSS 14.4%
  • HTML 10.2%
2019年06月24日 12:12:13 +02:00
website bugfix getVertices() 2019年06月24日 12:12:13 +02:00
.eslintrc.yml Improve architecture: split main js file into drawaingArea.js, glyphFactory.js and main.js 2019年06月09日 13:54:10 +02:00
.gitignore Add skeleton css and some style improvements 2019年06月15日 01:03:49 +02:00
.gitlab-ci.yml Fix ci: remove test stage, because build stage now includes test 2019年06月09日 13:58:35 +02:00
LICENCE Add licence 2019年06月01日 08:04:19 +01:00
package.json Move glyph info in a sidebar and display info about the currently writen glyph 2019年06月18日 00:17:39 +01:00
readme.md Fix build workflow 2019年06月17日 14:21:06 +02:00

Glyphus

Procedurally generated glyphs

What is it?

Glyphus is an alphabet created with the aim of being both very optimized and beautiful.

Each glyph represents one word, and each word is represented by one glyph. But all of them are generated in such a way that you can learn how to read it with some training, based on simple rules, without having to remember each glyph signification.

Why?

Cyrano de Bergerac : Que dites-vous ?... C’est inutile ?... Je le sais !

Mais on ne se bat pas dans l’espoir du succès !

Non ! non, c’est bien plus beau lorsque c’est inutile !

Cyrano de Bergerac, Edmond Rostand, acte V, scène 6

Is it a typeface?

Not really. According to Wikipedia, a typeface is a collection of glyphs, each of which represents an individual letter, number, punctuation mark, or other symbol.. Here a glyph represents a full word. Furthermore, Glyphus can not be stored in a TrueType font format (ie. .ttf) for technical reasons and works in the browser with Javascript.

Trying Glyphus now

Just go to the online demo page!

Running Glyphus website locally

  1. Get the repository:
  • option a: by cloning it: git clone https://framagit.org/roipoussiere/glyphus.git
  • option b: by downloading the archive: download the zip archive (or chose other archive formats from the download button on the repository page), then extract this archive.
  1. Open website/index.html with you favorite web browser.

Contributing

Thank you for you interest! ❤️ You can contribute to Glyphus in several ways.

Talk around you

If you like the project, please share it to people, whether it is on you favorite social media or away from keyboard.

Discuss or provide feedback

If you are a typography enthusiast, type designer, speech therapist, or you think that we can have interesting talks in some way, I definitely want to hear you!

You can either contact me directly (see contact section below) or create an issue on GitLab.

Send pull requests

Please discuss with me before starting a pull request. ;)

For the rest, as usual, fork the repository, create a new branch, do you modifications, then create a pull request on GitLab.

Don't forget to test your code before sending a pull request (see code section below).

Code

Here we go.

You can start some hackings project after downloaded it (see Running Glyphus website locally above) without other setups.

Dependencies

npm is required to execute the build scripts used to test code, provides a general-purpose package and publish the demo website.

Create a package and publish

These steps are executed by the continuous integration to publish the website:

npm install
npm run build

This will package glyphus as a library in dist, then create a web folder in public used in production.

Test

Test your code with npm test? This which will run eslint according to the rules defined in .eslintrc.

Then open public/index.html with your favorite web browser to check that everything works properly. Note the public instead of website, which use packaged version of Glyphus that aims to be published on npm.

In order to avoid mistakes, you can create a git hook that executes npm test before each commit (also works before each push with pre-push):

echo 'npm run build' > .git/hooks/pre-commit
chmod u+x .git/hooks/pre-commit

Publish

You may be interested my the npm start command, that starts a web server and serve the Glyphus website at http://127.0.0.1:8080/. This is required to test the web page on some browsers like Chromium, which blocks the glyphus import.

If port 8080 is already used, you can define an other with npm config set glyphus:port <port>.

Contact

Licence

MIT