Git Product home page Git Product logo

Comments (12)

RosaWagner avatar RosaWagner commented on May 18, 2024 1

Also removed weight from stat config.

Nope, if the stat entry is specified (such as when there are custom axis) then it has to be complete. The entire entry can be removed, only when all the axes can be generated by gftools (wdth, wght, ital).

from linefont.

dy avatar dy commented on May 18, 2024

Ok, I will adjust defaults, but as for mapping to 100..900 - I had that initially, but removed in order to be compatible with wavefont. Eg. if user switches font from wavefont to linefont the weight keeps persistent. Also it directly reflects UPM value.

from linefont.

RosaWagner avatar RosaWagner commented on May 18, 2024

The thing is in linefont is that the larger weight looks extremely heavy compared to wavefont. If you want consistency, I'd rather change wavefont to range from 100 to 900 (which is still possible, a problem in the API prevent to push it in sandbox for now), it would also gives more instances/flexibility to users.

from linefont.

dy avatar dy commented on May 18, 2024

Makes sense. Weight=400 for wavefont looks like super-heavy
image
I guess I can extend both to 100..900

from linefont.

dy avatar dy commented on May 18, 2024

Ok, I have updated both fonts to support 100..900 range (maps to 5..200 ups internally).
Also removed weight from stat config.
Not sure how to provide defaults in designspace - if I indicate default=400 it requires a master with that weight, but any additional master increases font size up to 30%. I'd prefer to keep default axis values to min values instead.
@RosaWagner

from linefont.

dy avatar dy commented on May 18, 2024

Got it. Updated, thank you @RosaWagner

from linefont.

RosaWagner avatar RosaWagner commented on May 18, 2024

Since you are keeping the minimal values as default we would need the font to be named after the origin:

font name: Linefont SuperCondensed
style: Thin

from linefont.

dy avatar dy commented on May 18, 2024

So that's postscriptFullName or styleName, or everything? What should I change in fontinfo.plist:

  ...
  <key>familyName</key>
  <string>Linefont</string>
  <key>styleName</key>
  <string>Thin</string>
  <key>postscriptFontName</key>
  <string>Linefont-Thin</string>
  <key>postscriptFullName</key>
  <string>Linefont Thin</string>
  <key>postscriptWeightName</key>
  <string>Thin</string>
  ...

Also - do I have to change designspace instance to SuperCondensed?:

<instance filename="instance_ufo/Linefont-Thin.ufo" name="Linefont Thin" familyname="Linefont" stylename="Thin">
          ...

Also - it doesn't build with latest gftools (I mentioned in wavefont PR):

...
fontmake.errors.FontmakeError: In 'Linefont.designspace': Generating fonts from Designspace failed: 

Couldn't merge the fonts, because one of the values in a list was empty when
it shouldn't have been. This happened while performing the following
operation: GPOS.table.LookupList.Lookup[0][0][1].EntryAnchor

The problem is likely to be in Linefont Thin:
.EntryAnchor==[None, None, None, None, None, None, None, None]

Would you be able to help point out where I can post that issue? https://github.com/googlefonts/gftools/issues?

from linefont.

RosaWagner avatar RosaWagner commented on May 18, 2024

The instances don't change cause they are at 100 (normal), but the Master Source yes it should be Linefont SuperCondensed

In plist I guess it should be:

  <key>familyName</key>
  <string>Linefont SuperCondensed</string>
  <key>styleName</key>
  <string>Thin</string>
  <key>postscriptFontName</key>
  <string>LinefontSuperCondensed-Thin</string>
  <key>postscriptFullName</key>
  <string>Linefont SuperCondensed Thin</string>
  <key>postscriptWeightName</key>
  <string>Thin</string>

For the error, can you open an issue in fontmake and tag me in it? I gonna be in holidays in a couple of days and it's better if the maintainer communicate with you directly

from linefont.

dy avatar dy commented on May 18, 2024

@RosaWagner it seems default width value here isn't necessarily 25 (SuperCondensed) - I can pick wdth to be 100, because I have that master. So the SuperCondensed isn't necessary I suppose?

from linefont.

RosaWagner avatar RosaWagner commented on May 18, 2024

Yes that would be even better

from linefont.

dy avatar dy commented on May 18, 2024

Ok, font is building now. I will close it.

from linefont.

Related Issues (11)

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.