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 emf brand font #23

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add emf brand font #23

wants to merge 1 commit into from

Conversation

hughrawlinson
Copy link
Contributor

@hughrawlinson hughrawlinson commented May 6, 2024

From here

The font is using the open font license, but the flow3r folks have taken the name clause to mean that they need to rename their version of the font - that's why this is called EMFCampHeading/EMFCampLabel.

It compiles fine, but when I try to use ctx.get_font_name to get the list of fonts, it just gives the existing list (including the flow3r fonts which we may want to remove?)

Here's how to list the fonts in the ctx:

def list_fonts(ctx):
    font_names = []
    i = 0
    while True:
        try:
            font_name = ctx.get_font_name(i)
            font_names.append(font_name)
            i += 1
        except IndexError:
            break
    return font_names

@thinkl33t
Copy link
Collaborator

My reading of the OFL is that since we're embedding it in our software, as long as we ship the license and don't modify the shape of the font, its still Raleway and can be called such (based on the OFL FAQ @ https://openfontlicense.org/how-to-use-ofl-fonts/ )

@hodefoting
Copy link
Contributor

hodefoting commented May 31, 2024

@thinkl33t see https://openfontlicense.org/how-to-modify-ofl-fonts/ "5.9 Do font rebuilds require a name change? Do I have to change the name of the font when my packaging workflow includes a full rebuild from source?"

The re-encoding of an OpenType font as a "native ctx-font" is a rebuild. Coordinates of the control points of shapes get re-quantized, the glyph coverage is subsetted, most ligatures are dropped; and most advanced OpenType features are dropped.

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.

None yet

3 participants