question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

-moz font property FP test [1787790]

See original GitHub issue

update info: see https://github.com/arkenfox/user.js/issues/1509#issuecomment-1231982265

STR

Looking to see if I can reduce the test to three items in FF, instead of 16 (and save 2.5ms)

Also looking to see if the first 12 items differ per OS version (esp windows, probably linux desktop environments and/or distros)

TIA ❤️

here’s windows 7 (and android)

FF52-103: windows 7: 6a6aa704622165913da4e2985dacbcd73b8ff466 
- doesn't change with TB
- doesn't change with language AFAICT
- doesn't change with zoom
- [ui] doesn't change with default zoom (all: i.e not zoom text only)

"caption:               Segoe UI 12px" (Roboto 12px)
"icon:                  Segoe UI 12px"
"menu:                  Segoe UI 12px"
"message-box:           Segoe UI 12px"
"small-caption:         Segoe UI 12px"
"status-bar:            Segoe UI 12px"
"-moz-window:           Segoe UI 12px"
"-moz-desktop:          Segoe UI 12px"
"-moz-document:         Segoe UI 12px"
"-moz-workspace:        Segoe UI 12px"
"-moz-info:             Segoe UI 12px"
"-moz-pull-down-menu:   Segoe UI 12px"

"-moz-dialog:           MS Shell Dlg \\32  12px" (Roboto 12px)

"-moz-button:           MS Shell Dlg \\32  13.3333px" (Roboto 13.3333px)
"-moz-list:             MS Shell Dlg \\32  13.3333px"
"-moz-field:            MS Shell Dlg \\32  13.3333px"

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:50 (25 by maintainers)

github_iconTop GitHub Comments

3reactions
opusforlife2commented, Jul 21, 2022

tell me the isOS [global] line

isOS [global]: 0 ms | n/a | windows | MS Shell Dlg \32

[widgets] os result at the end of the line, it should say [windows] and tell me what you get in the console

  "button: MS Shell Dlg \\32 , 13.3333px",
  "checkbox: MS Shell Dlg \\32 , 13.3333px",
  "color: MS Shell Dlg \\32 , 13.3333px",
  "combobox: MS Shell Dlg \\32 , 13.3333px",
  "radio: MS Shell Dlg \\32 , 13.3333px",
  "text: MS Shell Dlg \\32 , 13.3333px",
  "datetime: monospace, 13.3333px",
  "textarea: monospace, 13px"
2reactions
Thorin-Oakenpantscommented, Sep 20, 2022

nice … https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/41116

TB Nightly

FEATURE: widgets: 1854d674dda2b399bc5b338f0c2610fd2f98835a

0: "button: sans-serif, 13.3333px"
​1: "checkbox: sans-serif, 13.3333px"
​2: "color: sans-serif, 13.3333px"
​3: "combobox: sans-serif, 13.3333px"
​4: "radio: sans-serif, 13.3333px"
​5: "text: sans-serif, 13.3333px"
​6: "datetime: monospace, 13.3333px"
​7: "textarea: monospace, 13px"

note: datetime + textarea were not covered: so this will/may vary based on language = equivalency

-------

CSS: system fonts: c8a5f83b218efcb86cc6e3bf531409a52777a25c

0: "caption:sans-serif, 12px, normal, 400"
​1: "icon:sans-serif, 12px, normal, 400"
​2: "menu:sans-serif, 12px, normal, 400"
​3: "message-box:sans-serif, 12px, normal, 400"
​4: "small-caption:sans-serif, 12px, normal, 400"
​5: "status-bar:sans-serif, 12px, normal, 400"
​6: "-moz-window:sans-serif, 12px, normal, 400"
​7: "-moz-desktop:sans-serif, 12px, normal, 400"
​8: "-moz-document:sans-serif, 12px, normal, 400"
​9: "-moz-workspace:sans-serif, 12px, normal, 400"
​10: "-moz-info:sans-serif, 12px, normal, 400"
​11: "-moz-pull-down-menu:sans-serif, 12px, normal, 400"
​12: "-moz-dialog:sans-serif, 12px, normal, 400"
​13: "-moz-button:sans-serif, 13.3333px, normal, 400"
​14: "-moz-list:sans-serif, 13.3333px, normal, 400"
​15: "-moz-field:sans-serif, 13.3333px, normal, 400"

note: again, the sizes for the last three aren't covered, also mac has
`small-caption` in bold - but these may be tidied up, otherwise they
are just equivalency of language and in mac's case, of OS

Read more comments on GitHub >

github_iconTop Results From Across the Web

getComputedStyle reports a wrong family for system fonts ...
notice that the font you set on your system is ignored, and a font from the allowed list is shown, instead (e.g., Arial);...
Read more >
font property CSS (Cascading Style Sheets)
The font property allows you to specify what kind of letter is used for the visual representation of the element. You can change...
Read more >
CSS font property - W3Schools
The font property is a shorthand property for: ... The font-size and font-family values are required. If one of the other values is...
Read more >
css - -webkit-font-smoothing: antialiased equivalent in firefox?
Is there an equivalent property in Firefox? Font in WebKit with -webkit-font-smoothing: antialiased : enter image description here. Font in ...
Read more >
Syntax for OpenType features in CSS - Adobe Support
-moz-font-feature-settings: "liga" 0, "clig" 0; ... For now, we'll skip the font-variant property because its “named” values (like swash ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found