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

Create Light and Italic font faces #59

Merged
merged 14 commits into from
Jun 30, 2021
Merged

Create Light and Italic font faces #59

merged 14 commits into from
Jun 30, 2021

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Jun 26, 2021

There are some issues (#44, #45, #58) that can most likely be solved if we create the fonts not from the dynamic Cascadia Code font but select the adequate static font that is also provided by Microsoft.

In this way we can also include the italic and light font faces.

With this PR we have now 5 archives:

  • Delugia Powerline
  • Delugia Complete
  • Delugia Book
  • Delugia Powerline Mono
  • Delugia Complete Mono

that contains 6 font files each:

  • Regular
  • Bold
  • Italic
  • Bold Italic
  • Light
  • Light Italic

More information is in the discussion of #58.

Also included two font images in the README file.

Finii added 14 commits May 30, 2021 17:28
[why]
It is easier to work with the scripts and git, if all normally created
intermediate files are ignored. It allows to do a 'git clean -f' for
example.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The version parameter is not optional, so it should not be noted as
optional.

I'm not sure if it ever was optional, maybe a leftover from a different,
previous approach.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The script is hardcoded to provide a 'Regular' font face. Now that we
want to generate other faces we need to be more flexible.

[how]
Add a parameter that is used in the appropriate places.

Sometimes the style has no additional name ("Italic" face). To allow
that we need to be careful with added blancs in the name strings.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The demand for correctly working bold and italic fonts can not be
satisfied with our simple approach.

We need a whole lot more fonts!

[how]
Use the static Cascadia font versions and do the patching on all
relevant fonts.

Use a helper script to invoke the actual patching to hide all the
parameters that stay the same for all the fonts.

Group the created fonts by interest (small (powerline), complete, book)
and release as zip packages.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
When we work with the static font files we do not need to prepare (fix
for working with them in fontforge) them anymore.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The version in the font files reflects not the version name we want to
have. In fact it is just the git hash of the topmost commit and not the
git tag.

[how]
When switching to actions/checkout@v2 we only fetch the latest commit into
the git workflow (for performance reasons is this the default). But that
lacks all the tags, that we use to communicate the font version.

Now we resort to full depth cloning of the Delugia repository, which is
tiny anyway.

[note]
Action had been updated from @1 to @2 with commit
  22d4cae Combine workflows (adam7#57)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
We have 'normal' and 'bold' in one font family, but the 'italic' is in a
separate family. Some applications can group the weights/styles of one
font family in a way that allows to select 'bold' and/or 'italic' in the
application easily - without choosing a different font.

This seems to be broken if the italics is in a separate font family.

We have these families -> styles:

Deligia{}
  -> Regular, Bold
Delugia{}Light
  -> "" (Regular)
Delugia{}Italic
  -> Italic, Bold-Italic
Delugia{}ItalicLight
  -> Italic

[how]
Restructure the family names -> styles as such:

Deligia{}
  -> Regular, Bold, Italic, Bold-Italic
Delugia{}Light
  -> "" (Regular), Bold

[note]
With {} being our 5 styles:
  PL, MonoPL, Complete, MonoComplete, Book

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
The full name fields should contain the full name (obviously)
including the subfamily.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
If one specific font is to be identified we need an ID that changes with
new revisions.

[how]
Add the version to the ID.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why]
These Families are created:
- Delugia PL
- Delugia Mono PL
- Delugia Complete
- Delugia Mono Complete
- Delugia Book

At the moment we put both non-mono and mono families into one archive
like so:
1. Delugia PL and Delugia Mono PL
2. Delugia Complete and Delugia Mono Complete
3. Delugia Book

For some users it might make more sense to bundle the non-mono and mono
fonts. The majority probably needs just one family.

It might be unclear for users that these are 5 independent font sets.

[how]
Just stuff the files into more archives:
1. Delugia PL
2. Delugia Complete
3. Delugia Book

Ligarture-less variants:
4. Delugia Mono PL
5. Delugia Mono Complete

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii
Copy link
Collaborator Author

Finii commented Jun 26, 2021

Hmm, the last 4 commits do not have any commit message.
I'm getting lazy :-(

@Finii
Copy link
Collaborator Author

Finii commented Jun 26, 2021

You can see the new README (with 2 example images) rendered here https://github.com/Finii/delugia-code

Copy link
Owner

@adam7 adam7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(´▽`ʃ♡ƪ)
Beautiful PR @Finii, I'll have a look at the scoop integration and either update the instructions or remove them

@adam7 adam7 merged commit c1339ee into adam7:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants