Comments (3)
Thank you for the quick response. You might also need to change the OS/2.fsSelection too to reflect the weight change according to name
specification from Microsoft.
Also from the site,
While some platforms or applications do not have this constraint, many existing applications that use this pair of names assume that a Font Family name is shared by at most four fonts that form a font style-linking group, and that Font Subfamily names would reflect one of the four basic styles, regular, italic (or oblique), bold, and bold italic (or bold oblique). To be compatible with the broadest range of platforms and applications, it is strongly recommended that fonts should limit use of Font Family in this manner.
Thus, it might be more reasonable to let both platforms use the same set of constrain, unless Mac softwares are able to differentiate family name other than Regular and Bold.
from glow-sans.
A quick run and check, I think i have found the code for the name
table to be fixed:
record(familyName, `Glow Sans ${langStr} ${widthStr}`),
record(subfamilyName, weightStr),
I think you may want to update the code to be:
if (weightStr == "Regular" || weightStr == "Bold"){
record(familyName, `Glow Sans ${langStr} ${widthStr}`),
record(subfamilyName, weightStr),
} else {
record(familyName, `Glow Sans ${langStr} ${widthStr} ${weightStr}`),
record(subfamilyName, `Regular`),
}
The same fix would need to be fix across languages so maybe(?) put this code at the top for all languages:
if (weightStr == "Bold"){
weightName1Str = "";
weightName2Str = "Bold";
} else if (weightStr == "Regular"){
weightName1Str = "";
weightName2Str = "Regular";
} else {
weightName1Str = weightStr;
weightName2Str = "Regular";
}
...
record(familyName, `Glow Sans ${langStr} ${widthStr} ${weightName1Str}`),
record(subfamilyName, weightName2Str),
from glow-sans.
Thank you for pointing out the problem and working on further research. I think I've realized what is going wrong. The latest version follows the naming scheme for Macintosh (platformID=1
) but actually has platformID=3
(Windows), causing unexpected behaviors on both platforms. We will differentiate the name
records for different flatforms in the next version.
The working name
table records for nameID = 1, 2, 4
might be,
[{
"platformID": 1,
"encodingID": 1,
"languageID": 1033,
"nameID": 1,
"nameString": "Glow Sans SC Compressed"
},
{
"platformID": 1,
"encodingID": 1,
"languageID": 1033,
"nameID": 2,
"nameString": "Book"
},
{
"platformID": 1,
"encodingID": 1,
"languageID": 1033,
"nameID": 4,
"nameString": "Glow Sans SC Compressed Book"
},
{
"platformID": 3,
"encodingID": 1,
"languageID": 1033,
"nameID": 1,
"nameString": "Glow Sans SC Compressed Book"
},
{
"platformID": 3,
"encodingID": 1,
"languageID": 1033,
"nameID": 2,
"nameString": "Regular"
},
{
"platformID": 3,
"encodingID": 1,
"languageID": 1033,
"nameID": 4,
"nameString": "Glow Sans SC Compressed Book"
}]
from glow-sans.
Related Issues (20)
- 是否考虑加入字体动画效果 HOT 1
- TC 版本有缺字 HOT 4
- I think you need to change the glyphs some more... HOT 5
- 字体安装后,PS和AI中仅显示两种字形 HOT 4
- 在MEDIUM以及更粗的字重里头,“烟”字没有拔去左边的引脚。 HOT 1
- [Feature Request]能否考虑加入拉丁文扩展区的支持
- 字体安装后,PS中仅显示两种字重 HOT 9
- Korean support? HOT 2
- 希望能用字體變形技術把日本開源字體 m+ font 補齊 HOT 1
- 有考虑做 hinting 过的 ttf 版本吗 HOT 3
- “电”字太奇怪了 HOT 1
- Rebase project to variable font? HOT 1
- 在Windows11中,使用桌面端或网页版的Figma,只显示 HOT 2
- 字體無法順利安裝 HOT 7
- 希望可以在Releases 添加svg woff等格式字体 HOT 2
- 关于未来荧黑版权买断的可行性 HOT 1
- samples/.json HOT 2
- 節慶的「節」細節不正確! HOT 2
- 可不可以圓角? HOT 1
- 这个项目停更了吗 HOT 2
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 glow-sans.