Git Product home page Git Product logo

Comments (4)

m4rc1e avatar m4rc1e commented on September 24, 2024

@madig mind emailing me the fonts?

from gfregression.

madig avatar madig commented on September 24, 2024

Any fonts I tested. Try e.g. https://sourceforge.net/projects/dejavu/files/dejavu/2.36/dejavu-sans-ttf-2.36.zip/download and https://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-sans-ttf-2.37.zip/download

from gfregression.

m4rc1e avatar m4rc1e commented on September 24, 2024

@madig thanks!

We've been using it on much smaller sets of fonts. I'll see what's happening.

from gfregression.

m4rc1e avatar m4rc1e commented on September 24, 2024

Alright found the issue with Dejavu

fonts_after = models.add_fonts(after, 'after', uuid)
  File "/Users/marc/Documents/gfregression/app/models.py", line 39, in add_fonts
    fonts.append(add_font(path, font_type, uuid))
  File "/Users/marc/Documents/gfregression/app/models.py", line 47, in add_font
    family_name, style = filename[:-4].split('-')

The filename didn't follow the pattern I was expecting which is FamilyName-StyleName.ttf. For Dejavu, the filename is DejaVuSans.ttf.

At GF, font filenames must mention the style. For everyone else this isn't a deal breaker so I'll modify this now.

In the meantime, if you're curious to have a look around, rename your font to DejaVuSans-Regular.ttf

I will also include better error handling so when tracebacks occur, you'll see errors on a dedicated page.

from gfregression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.