Gunnar Bittersmann: Javascript Problem mit "select" und "option"

Beitrag lesen

@@Rolf B

Bei mir passiert das nicht. Sie verwenden font-family: var(--font-code), und das custom property ist festgelegt als

"Monaspace Argon","Monaco","Andale Mono","Lucida Console","Bitstream Vera Sans Mono","Courier New",Courier,monospace

Hinzu kommt noch font-variant-ligatures: contextual;

Aus meiner Sicht ist Monaspace Argon ein Webfont, den jsFiddle selbst hostet und der bei mir auch verwendet wird. Eine Ligatur für <= sehe ich nicht.

Hm, ich sehe die Ligatur:

Screenshot von JSFiddle mit geöffnetem Entwicklertool

Im Entwicklertool sieht man als Elementinhalt <=.

Ich hab auf die Schnelle nicht gefunden, wo das OpenType-Feature gesetzt wird. Vielleicht ist es ja per Default an für den Font Monaspace Argon.

Ich hab auf die Schnelle auch nicht gefunden, wie man das ausstellen kann. Hab auch wenig Lust, mich durch die div-Suppe durchzuwühlen.

Wenn ich Monaspace Argon aus --font-code rausnehme, wird in Monaco gerendert – ohne Ligatur.

🖖 Live long and prosper

--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14