Texto en círculo con SVG

Descubre cómo trazar texto curvo en rutas SVG para emblemas, monedas y logos. Guía paso a paso con textPath, diseño, animación y soluciones profesionales en Q2BSTUDIO

14 sept 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

El texto curvo aporta gran atractivo visual, ideal para emblemas, monedas o logotipos. En este artículo explico cómo trazar texto en una ruta circular usando SVG y cómo integrarlo en proyectos profesionales, como los que desarrolla Q2BSTUDIO, empresa especializada en aplicaciones a medida, software a medida, inteligencia artificial y ciberseguridad.

Por qué usar texto curvo: permite que el contenido siga la silueta circular en lugar de la línea recta habitual. Con SVG se obtiene control preciso sobre posicionamiento, espaciado y estilo, manteniendo escalabilidad y adaptabilidad responsive.

Paso 1 Definir una ruta circular: crea la ruta que seguirá el texto. En SVG se definen rutas con elementos path. Ejemplo de semicírculo superior como texto visible usando entidades HTML: <path id=circle-top d=M 28,190 A 162,162 0 0,1 352,190 /> Explicación del atributo d: M 28,190 mueve al punto inicial; A 162,162 0 0,1 352,190 dibuja un arco con radio 162 hasta 352,190. Esta ruta es la curva sobre la que fluye el texto.

Paso 2 Adjuntar el texto a la ruta: usa text y textPath. Ejemplo visible: <text class=curved-text-top dy=16> <textPath href=#circle-top startOffset=50%> 20 YEARS ORLANDO & SURROUNDING CITIES </textPath> </text> Atributos clave: href=#circle-top referencia la ruta; startOffset=50% centra el texto; dy=16 ajusta alineación vertical.

Ejemplo de estilo CSS para el texto curvo: .curved-text-top { font-size: 40px; font-weight: 900; letter-spacing: 6px; fill: white; text-anchor: middle; text-shadow: 1px 1px 0 rgba(0,0,0,0.7); } Estos estilos mejoran legibilidad y presencia visual.

Paso 3 Ajustar espaciado dinámicamente: a veces el texto no encaja perfectamente en el arco. Conviene usar JavaScript para adaptar el espaciado cuando cambia el tamaño del contenedor. Idea general del script sin comillas para entender la lógica: obtener la ruta con document.getElementById(circle-top) obtener textPath con document.querySelector(textPath) calcular pathLength con getTotalLength() añadir un padding y establecer atributos lengthAdjust y textLength para que el texto se distribuya correctamente a lo largo de la ruta. Escucha el evento resize y reaplica el ajuste para mantener el encaje.

Paso 4 Añadir arco inferior o estrellas: puedes añadir una ruta inferior para decorar con estrellas o texto adicional. Ejemplo: <path id=circle-bottom d=M 352,190 A 138,138 0 0,1 28,190 /> y luego un text con varios tspan para estrellas o símbolos siguiendo esa ruta.

Paso 5 Estilizado y animación: mejora la experiencia con animaciones CSS para resaltar elementos decorativos. Ejemplo de animación de estrellas: .curved-stars-bottom .star { animation: starPulse 2s infinite; } @keyframes starPulse { 0%,100% { fill:white; transform: scale(1); } 50% { fill: #ffd700; transform: scale(1.3); } } Las animaciones aportan dinamismo sin comprometer la escalabilidad del SVG.

Cómo aplicar esto en productos reales: en Q2BSTUDIO combinamos diseño SVG con desarrollo front y lógica de backend para crear insignias, logos y elementos UI interactivos integrados en aplicaciones corporativas. Si necesitas soluciones de software a medida y aplicaciones a medida podemos diseñar componentes SVG reutilizables que formen parte de tus apps multiplataforma.

Servicios complementarios: además de desarrollo, ofrecemos inteligencia artificial para empresas y agentes IA que pueden automatizar la generación o personalización de textos curvos y estilos basados en datos. Conoce nuestras capacidades en IA en soluciones de inteligencia artificial. También trabajamos ciberseguridad, pentesting, servicios cloud aws y azure y servicios inteligencia de negocio como power bi para dotar a tus proyectos de robustez, escalabilidad y analítica avanzada.

Resumen: combinando SVG con texto en rutas y un poco de JavaScript obtienes texto perfectamente curvado para cualquier elemento circular. Ideal para badges, monedas o logos. Funciona con múltiples rutas y fuentes distintas, admite animaciones e interactividad y se integra con soluciones empresariales como automatización, agentes IA y dashboards con power bi para potenciar tu producto o marca.

En Q2BSTUDIO desarrollamos soluciones integrales que unen diseño, desarrollo y seguridad para llevar tus ideas a producción, desde prototipos con SVG hasta plataformas completas en la nube.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat