Skip to content

Commit

Permalink
Move comment and make it a bit more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
ollimeier committed Jan 22, 2025
1 parent 083cb1f commit ee36016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/fontra_glyphs/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,6 @@ def _writeRawGlyph(self, glyphName, f):

def getGlyphFilePath(self, glyphName):
glyphsPath = pathlib.Path(self.gsFilePath) / "glyphs"
# TODO: Get the right glyph file name might be challenging,
# because for example the glyph A-cy is stored in the package as A_-cy.glyph
realGlyphName = getGlyphspackageGlyphFileName(glyphName)
return glyphsPath / (realGlyphName + ".glyph")

Expand Down
4 changes: 4 additions & 0 deletions src/fontra_glyphs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@


def getGlyphspackageGlyphFileName(glyphName):
# Get the right glyph file name might be challenging, because for example
# the glyph "A-cy" is stored in the package as A_-cy.glyph.
# I could not find any documentation about this, yet. We may need to figure
# this out over time and extend the unittest.
nameParts = glyphName.split("-")
firstPart = (
f"{nameParts[0]}_"
Expand Down

0 comments on commit ee36016

Please sign in to comment.