This may be a red herring, but www.torproject.org/zh-CN does not render Noto Sans SC Regular. It seems like there's something wrong with our bundled fonts. If you unset FONTCONFIG*, and use system fonts, then it renders correctly.
tl;dr it seems like the cmap isn't being initialized correctly when restricted to bundled fonts. I don't know why we're seeing inconsistent behavior on different linux64 systems, though.
compared with font logs when not restricting fonts, notice it's using the bundled font:
[Child 12718: Main Thread]: W/textrun (textrun) fontgroup: [] default: sans-serif lang: zh-CN script: 17 len 8 weight: 400 stretch: 100% style: normal size: 16.00 2-byte TEXTRUN [隐私是一项人权 ] ENDTEXTRUN[Child 12718: Main Thread]: D/fontlist (fontlist-cmap) name: Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False, size: 10272 hash: 00000000 new
If I move all of the fonts out of fonts/ except for NotoSansSC-Regular.otf, then the font is correctly chosen and the characters render correctly.
[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family 0 (Noto Sans SC)[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family 1 (Noto Sans SC Regular)[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family (Noto Sans SC) added face (Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False) index 0, weight 400, style normal, stretch 100[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family (Noto Sans SC) added face (Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False) index 0, weight 400, style normal, stretch 100[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family (Noto Sans SC Regular) added face (Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False) index 0, weight 400, style normal, stretch 100[Parent 15503: Main Thread]: D/fontlist (shared-fontlist) family (Noto Sans SC Regular) added face (Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False) index 0, weight 400, style normal, stretch 100[Parent 15503: Main Thread]: D/fontlist (fontlist-cmap) name: Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False, size: 10272 hash: 00000000[Child 15599: Main Thread]: D/fontlist (fontlist-cmap) name: Noto Sans SC,Noto Sans SC Regular:familylang=en,en:style=Regular:stylelang=en:fullname=Noto Sans SC Regular:fullnamelang=en:slant=0:weight=80:width=100:foundry=GOOG:file=/home/sysrqb/testing/11.0a9/tor-browser\_en-US/Browser/fonts/NotoSansSC-Regular.otf:index=0:outline=True:scalable=True:lang=aa|ay|bg|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gn|gv|ho|ia|ig|id|ie|io|is|it|ja|ki|kum|lb|mg|nb|nds|nl|nn|no|nr|oc|om|os|pt|rm|ru|sel|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zh-cn|zh-sg|zh-tw|zu|an|fil|ht|jv|kj|kwm|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=65798:capability=otlayout\:DFLT otlayout\:cyrl otlayout\:grek otlayout\:hani otlayout\:kana otlayout\:latn:fontformat=CFF:decorative=False:postscriptname=NotoSansSC-Regular:color=False:symbol=False:variable=False, size: 10272 hash: 00000000
Open a terminal and cd to the tor-browser_en-US directory.
Start the browser via ./start-tor-browser.desktop
$ ./start-tor-browser.desktop --verbose
Launching './Browser/start-tor-browser --detach --verbose'...
Fontconfig warning:
"/bin/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf",
line 37: Use of ambiguous path in element. please add prefix="cwd"
if current behavior is desired.
Fontconfig warning:
"/bin/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf",
line 85: unknown element "blank"
The browser can not locate the fonts and displays the browser chrome
font as unicode "boxes".
Changing the Font directory list to <dir prefix="relative">fonts</dir>
fixes the issue for me.
Not sure what the issue is with the message about blank.
Fontconfig warning: "~/bin/tor-browser_en-US/Browser/TorBrowser/Data/fontconfig/fonts.conf", line 37: Use of ambiguous path in <dir> element. please add prefix="cwd" if current behavior is desired.
I was able to reproduce the issue in a fedora-33 VM.
Adding prefix="cwd" is removing the warning, however it is not fixing the issue. But replacing fonts with an invalid path is fixing the issue. Which is probably why using prefix="relative" is fixing it too (fonts is an invalid path relative to fonts.conf directory).
So it seems the issue is with something in the fonts directory.
It doesn't look THAT bad for me, but I noticed that some websites now seem to be rendered using different fonts than they used to be rendered with ... and typically the new fonts look somewhat off (e.g., too small or not aesthetically pleasing ...). I'll update this once I come across specific examples.
I notice that the font in this text entry box here doesn't look great (but it's OK once I click "Preview"), but I don't remember exactly what it used to look like.
Edit:
11.0.1 seems kick butt so far! Thanks so much for what you do. Maybe there was some error in releasing the previous update as though it were a stable update? It looked to me like that was the intention, and I unwittingly plunged into some out of my league troubleshooting. On Ubuntu 18, it's working well now.