Comments (13)
Ok, I submited a bug report to Sketch. Will keep you informed.
from puzzle-tokens.
@tijmenvangurp I tried to forget Fontforge dark magic. Because it's a nightmare.
But if I remember correctly — I changed these fields:
from puzzle-tokens.
Thanks for the report. I will check it.
from puzzle-tokens.
Sketch handles font weight selection by UI and by API in slightly different ways.
As a result you can select Light or Thin weight in UI, but in Sketch API both weights are equal (3), so I can't set a valid value.
We met this problem before with other font and the only one solution which we found was to patch the font using FontForge.
from puzzle-tokens.
I will continue a research to workaround it somehow.
from puzzle-tokens.
Another solution is to uninstall Thin and Ultra Thin fonts. In this case font-weight:200 will select Light font.
from puzzle-tokens.
Sketch handles font weight selection by UI and by API in slightly different ways.
As a result you can select Light or Thin weight in UI, but in Sketch API both weights are equal (3), so I can't set a valid value.We met this problem before with other font and the only one solution which we found was to patch the font using FontForge.
Do you know what the fix is in fontforge? I am running into the same issue.
from puzzle-tokens.
@tijmenvangurp I found a workaround for the light Font doing it like this:
font-weight: thin; //thin because light is not working for the moment
That workaround is just working if you don't want to use all the font-weights.
from puzzle-tokens.
Maybe simple css don't have light font size? https://htmldog.com/references/css/properties/font-weight/
from puzzle-tokens.
It might be that sketch is following https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass the OpenType specs? I will try to change the weight names to what the open type has and see if that works.
from puzzle-tokens.
This fix worked for me.
I had to update the name in preferred styles from Xbold to extra-bold then if apply font-weight 800 it works :)
Btw, this fix is only needed for the people in the team using the plugin, since sketch does not see it as an actual different font in use.
from puzzle-tokens.
from puzzle-tokens.
In the end, I had to change 3 font-weight names. I followed this table and everything works
from puzzle-tokens.
Related Issues (20)
- [FR] Add text transformation options. HOT 4
- Generate Style Overview - Bug HOT 5
- [FR] Paragraph space. HOT 1
- Spaces in style name HOT 1
- [FR] Multiple Box-Shadow Properties HOT 2
- [FR] Would it be possible to define spacing (padding margin)?
- Plugin not working on cloud documents HOT 4
- Special character in classname HOT 2
- Improve error message on block comments in scss HOT 5
- Sketch 66.1 "Error: An Obj-C exception occurred." HOT 9
- mix-blend-mode HOT 14
- opacity in Textstyles not working HOT 3
- [Request] Link color variable into the layer/text style HOT 5
- Some way to rename loaded file Untitled.less -> given_name.less HOT 6
- Plugin is not Running anymore after Update HOT 6
- Sketchtool after Sketch update crashes when running Puzzle tokens HOT 2
- TypeError, plugin not working through the CLI anymore HOT 5
- Output in the CLI
- CLI not consequent to using the Plugin from sketch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puzzle-tokens.