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 155261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:07:27+00:00 2026-05-11T10:07:27+00:00

I want to write out some text using smallcaps in combination with different fonts

  • 0

I want to write out some text using smallcaps in combination with different fonts for different words.

To clarify I might want the message ‘Welcome to our New Website’ which is generated into a PNG file for the header of a page.

  • The text will be smallcaps – everything is capitalized but the ‘W’, ‘N’ and ‘W’ are slightly larger.
  • The ‘New Website’ will be in a different font than the rest of the text.

Is there a way i can do this without doing it completely manually?

Doing something like this is conceptually what I want to do :

 graphics.DrawString('<font size=2>W</font>ELCOME TO OUR <b><font size=2>N</font>' +                      'EW <font size=2>W</font>EBSITE</b>'); 

The best approach I could find so far is here, but I’m worried that I’ll go to all the trouble to do this manually and end up with some horrible kerning or tracking problems.

Edit: I should have mentioned that this is being done within ASP.NET so it needs to be fast and as lean as possible. I want it to be automated so I can localize easily and not have to create tonnes of little images.

  • 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. 2026-05-11T10:07:28+00:00Added an answer on May 11, 2026 at 10:07 am

    It seems like you should really be using a RichTextBox here… there is a method to extract a bitmap from the RichTextBox which you could then render as a bitmap to your graphics context. Of course, you’d need to make a Managed C++ call here and I don’t know if you’re able to do that in your project.

    Otherwise, I think you will need to do it manually with DrawString and MeasureString, which is a pain.

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

Sidebar

Ask A Question

Stats

  • Questions 120k
  • Answers 120k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A very simple way to do this without using timestamps… May 12, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer See this: http://blogs.msdn.com/ie/archive/2009/05/06/session-cookies-sessionstorage-and-ie8.aspx for info on session merging. As an… May 12, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer insert into workorder (productid) select productid from product where productid… May 12, 2026 at 12:09 am

Related Questions

I have a class that holds an "error" function that will format some text.
(I still feel like a complete newbie in MS Visual environments... so please bear
I have a sketch that I want to put up on my website, and
I have an excel document represented as a byte[] and I'm wanting to send

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.