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

Add benchmarks #156

Open
1 task done
victor-pogor opened this issue Mar 14, 2023 · 0 comments
Open
1 task done

Add benchmarks #156

victor-pogor opened this issue Mar 14, 2023 · 0 comments
Labels
📖 feature Large bodies of work that can be broken down into a number of smaller user stories
Milestone

Comments

@victor-pogor
Copy link
Member

victor-pogor commented Mar 14, 2023

User Stories

  1. 🎯 user story area:core
    victor-pogor
victor-pogor added a commit that referenced this issue Mar 14, 2023
### Context

According to the `ISO 32000-1:2008` specification, section `9.6.2`, a `Type 1` font program is a stylized PostScript program that describes glyph shapes. This object is represented as a PDF dictionary.

This dictionary has an entire list of entries but this user story will be focused on supporting only the essential ones for the standard 14 fonts.

### Required entries

| Key | Type | Constraints |
| --- | --- | --- |
| Type | name | Required, must be `Font` |
| Subtype | name | Required, must be `Type1` |
| Name | name | Required in PDF1.0 but the validation will be skipped in this story |
| BaseFont | name | Required, in the context of this story the name must match one of 14 standard fonts |

### Standard 14 fonts

The PostScript names of 14 Type 1 fonts, known as the standard 14 fonts, are as follows:

- Times-Roman
- Helvetica
- Courier
- Symbol
- Times-Bold
- Helvetica-Bold
- Courier-Bold
- ZapfDingbats
- Times-Italic
- Helvetica-Oblique
- Courier-Oblique
- Times-BoldItalic
- Helvetica-BoldOblique
- Courier-BoldOblique

### Acceptance criteria

1. This object must extend the #9
2. Add the static standard 14 fonts, ~~probably using a Lazy initialization pattern~~
3. The code must be covered with the unit tests


* ci(benchmark): added initial project and a test benchmark

re #156

* feat(font): added basic Type1 font and the standard 14 fonts
@victor-pogor victor-pogor added the 📖 feature Large bodies of work that can be broken down into a number of smaller user stories label Mar 22, 2023
@victor-pogor victor-pogor added this to the v1.0 milestone Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 feature Large bodies of work that can be broken down into a number of smaller user stories
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant