notofonts / noto-fonts

Noto fonts, except for CJK and emoji
http://fonts.google.com/noto
SIL Open Font License 1.1
2.46k stars 199 forks source link

Small caps fails in Noto Sans-REGULAR TTF (but works in OTF and TTF Noto Sans DISPLAY-Regular) #2028

Closed JimEBlevins closed 3 years ago

JimEBlevins commented 3 years ago

Defect Report

Font

NotoSans-Regular.ttf
File version 1.04

Site: https://github.com/googlefonts/noto-fonts/tree/main/hinted/ttf/NotoSans

Date: ‎2021-03-11

Font Version

  • Win -- Wednesday, ‎27 ‎February, ‎2013, ‏‎12:00:00 AM

Windows 10

Application name and version

Moot: TeXworks and TeXstudio

Issue

Small caps fail on TTF. (They work with OTF)

  1. Replication: Reinstalled on 2 separate Windows 10 systems, 2+ times each
  2. Observation: Small caps fail for the regular Sans, but not for display sans
  3. Expectation: Small caps should work for regular Sans

The problem was solved by using the hinted OTF version, which hidden in a tree in which the first branch is erroneously labeled "unhinted". The final branch of the tree is labeled "hinted and unhinted", which corrects the earlier mislabeling ... in a way.

JimEBlevins commented 3 years ago

Noto Sans Regular does not have functioning small caps, while the other styles do, according to my LaTeX use (FontSpec; LuaTeX, ProTeXt with MikTeX and TeXStudio) on Windows 10.

Noto Sans Display Regular does have functioning small caps.

moyogo commented 3 years ago

@StatisticalProgrammer Noto Sans Regular has small caps for many Latin glyphs, none for Greek or Cyrillic glyphs, since version 1.902.

What version of Noto Sans Regular are you testing How are you testing it?

I cannot reproduce with Fontspec and XeLaTeX:

\documentclass[a4paper]{l3doc}
\usepackage{fontspec}
\begin{document}
\fontspec{NotoSans-Regular.ttf}
abcdefghijklm

nopqrstuvwxyz

àáâãäåæçèéêëì

íîïðñòóôõöøùú

ûüýþÿāăąćĉċčď

đēĕėęěĝğġģĥħĩ

īĭįijĵķĺļľŀłńņ

ňŋōŏőœŕŗřśŝşš

ţťŧũūŭůűųŵŷźż

žǻǽǿșțẁẃẅỳ

\fontspec{NotoSans-Regular.ttf}[Letters=SmallCaps]
abcdefghijklm

nopqrstuvwxyz

àáâãäåæçèéêëì

íîïðñòóôõöøùú

ûüýþÿāăąćĉċčď

đēĕėęěĝğġģĥħĩ

īĭįijĵķĺļľŀłńņ

ňŋōŏőœŕŗřśŝşš

ţťŧũūŭůűųŵŷźż

žǻǽǿșțẁẃẅỳ

\end{document}
image
JimEBlevins commented 3 years ago

Thanks for your quick response. I shall edit the above response with more information.

I was using TeXStudio, with which I replicated the failure on another Windows 10 system a few weeks ago, until now.

I used TeXWorks on your example (thanks!) and the error persists, when using Lua and XeLaTeX.

However, I did reinstall the .ttf fonts for Sans-Regular and for SansDisplay-Regular today, and then I restarted my system. The error persists.

Lua version. The XeLaTeX version seems identical (and it certainly has the same failure to use the small caps). SMallCapsXeLaTeX.pdf

P.S. FYI, I displayed Noto small caps when discussing Adobe Source Sans 3 https://github.com/adobe-fonts/source-sans/issues/190#issuecomment-778039616

TeXworks gave this warning:

Package fontspec Warning: OpenType feature 'Letters=SmallCaps' (smcp) not available for font 'NotoSans-Regular' with script 'CustomDefault' and language 'Default'.

JimEBlevins commented 3 years ago

Finally, the OTF version fixed the error, which seems to be limited to the TTF file.

Please change the tree labels, so that the hinted OTF files are recommended (and not the inferior TTF files).