Axis labels and tick labels in 3D plots do not use fonts loaded from remote server
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
I have an HTML export of a 3D figure created using the Python API. For website embedding, I load a custom font from a server. For the example here, I'll just use a Google Font with a distinct style:
<link
href="http://fonts.googleapis.com/css?family=Audiowide"
rel="stylesheet"
type="text/css"
/>
I include a template in the plot layout so that this font is used for axis labels, tick labels, and et cetera. For 2D plots, this works as expected. For 3D plots, the axis and tick labels do not use the font at all.
I can't share the HTML export, but I recreated a minimal example from scratch to demonstrate this using Plotly.js:
plotly-3d-graph-font-issue.html.zip
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das dem Issue beigefügte minimale Plotly.js-HTML-Beispiel auszuführen, und vergleiche die Schriftbehandlung zwischen seinen 2D- und 3D-Plots. Verfolge den Rendering-Pfad für 3D-Achsen und Tick-Beschriftungen; als erledigt gilt die Aufgabe, wenn remote geladene Schriften auf diese Beschriftungen angewendet werden, wie bei 2D-Plots.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100