Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

274
Views
¿Por qué electron reacciona con componentes con estilo no carga fuentes?

Estoy configurando mi primer proyecto de reacción electrónica y cuando importo fuentes como estilos globales, nunca se cargan:

 import neuropolitical from './fonts/neuropolitical rg.ttf'; const GlobalStyle = createGlobalStyle` @font-face { font-family: 'Neuropolitical'; src: url(${neuropolitical}) format('truetype'); font-style: normal; } * { color: green; font-family: 'Neuropolitical'; } `; export default function App() { return ( <div> <GlobalStyle /> <h1>HEY, This is supposed to be neuropolitical rg font.</h1> </div> ); }

Aquí, dice que usa la familia de fuentes correcta; además, el texto es verde, por lo que se aplica el estilo global:

Prestar

He intentado importar fuentes locales y web. Ninguno funciona. Este es mi Index.js solo para mostrar que no hay nada que lo anule:

 import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> <App /> </React.StrictMode> ); reportWebVitals();

Aquí está mi jerarquía de archivos:

jerarquía

La fuente admite letras latinas normales. ¿Qué me estoy perdiendo?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!