Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
"The Hershey fonts are a collection of vector fonts developed circa 1967 by Dr. A. V. Hershey at the Naval Weapons Laboratory.[1][2] The fonts are publicly available and have few restrictions.[3] Vector fonts are easily scaled and rotated in two or three dimensions; consequently the Hershey fonts have been widely used in computer graphics and computer-aided design programs."
https://en.wikipedia.org/wiki/Hershey_font
>"The Hershey fonts are a collection of vector fonts developed circa 1967 by Dr. A. V. Hershey at the Naval Weapons Laboratory.[1][2] The fonts are publicly available and have few restrictions.[3] Vector fonts are easily scaled and rotated in two or three dimensions; consequently the Hershey fonts have been widely used in computer graphics and computer-aided design programs." (https://en.wikipedia.org/wiki/Hershey_font)

We developed this Library for drawing typography on drawbots in mind. The basic problem with common typography on drawbots is the filling pattern. Otherwise only the outlines are drawn.

##HersheyFont Library Features:
## HersheyFont Library Features:
1. Drawing line fonts in Processing
2. Create PShape from string
3. Export SVG via P8gGraphicsSVG

##Source Code:
https://github.com/ixd-hof/HersheyFont

#Usage:
## Usage:
1. Import library
> import de.ixdhof.hershey.*;
`import de.ixdhof.hershey.*;`

2. Initialize and load font
> HersheyFont hf = new HersheyFont(this, "cursive.jhf");
`HersheyFont hf = new HersheyFont(this, "cursive.jhf");`

3. Set text size
> hf.textSize(100);
`hf.textSize(100);`

4. Draw text
> hf.text("Hello", 0, 0);
`hf.text("Hello", 0, 0);`

5. Create and draw PShape
> PShape ps = hf.getShape("Processing");
> shape(ps);
`PShape ps = hf.getShape("Processing");`
`shape(ps);`

##Example:
## Example:

import de.ixdhof.hershey.*;

Expand Down