Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1043679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:42:24+00:00 2026-05-16T15:42:24+00:00

I would like to put a shadow around any given text, or make the

  • 0

I would like to put a shadow around any given text, or make the text more anti-aliased looking.

For example lets say I’m running a simple text such as:

var titleName = R.text(x+200, y-75, "Lorem Ipsoup de jour")
                 .attr({font: '75px Helvetica, Arial', opacity: 1, fill: "#dfe6ec"})

The text is somewhat chunky looking at that size, and doesn’t blend well against a background. Is there a way I can create a drop-shadow effect (with alpha channel, ideally)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:42:25+00:00Added an answer on May 16, 2026 at 3:42 pm

    In SVG a text shadow effect isn’t as simple as with CSS3, but it’s reasonably straightforward using a filter. You can’t use that example as is in Raphaël because it has no support for groups, but you might be able to create the filter definition in an external file and then apply it with:

    .attr({filter: "url(filters.svg#dropShadow)"});
    

    –edit

    I’ve had a chance to give it a try and it doesn’t work because filter isn’t recognised by attr, however it does work (in Firefox) if you grab the node and use a regular DOM setAttribute method.

    var t = paper.text(100, 100, "Raphaël\nkicks\nbutt!");
    t.node.setAttribute("filter", "url('filters.svg#dropShadow')");
    

    Chrome doesn’t apply the drop shadow, and Opera blurs the entire element. It almost certainly won’t work in IE because that’ll be VML. Example here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to put a string into a byte array, but the string
I would like to put a link to a webpage in an alert dialog
I would like to put my ScrollViewer in such a way that it overlaps/sits
I would like to put the date the application was built somewhere in the
I would like to put user controls on pages without registering the tag at
I would like to know what the definitive (?) answer is for how to
In an Asp.net MVC application I'd like to encapsulate the ugly wrapper code (just
I am trying to change the color of links inside <li> elements by setting
Remember the little div that shows up at the top of the page to
I have several forms on a page with different ids and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.