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

  • Home
  • SEARCH
  • 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 7779493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:39:09+00:00 2026-06-01T18:39:09+00:00

Let’s say that I’m using a non-system font (ex., PT Sans) for a CMS

  • 0

Let’s say that I’m using a non-system font (ex., PT Sans) for a CMS website. So what I do is, I’ll include the font family of different styles (say, Regular, Italic and Bold) using @font-face. Then I would define the font-family of body as PT Sans Regular. All is well till now.
Then, my client for example, edits some text content in the website. He gives different font-styles to the text – like he boldens an important message and italicizes the name of locations. So altogether, he stylizes the content the way he likes. No problem with that too.
But, what the real question is, how will the website know that if there’s a italicized text, it should use PT Sans Italic instead of the regular version of the font, even if the body's font is PT Sans Regular?

I’ve been thinking about this for a while, but I can’t find a solution for it.
Is there a possible solution for situations like this?

  • 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-06-01T18:39:11+00:00Added an answer on June 1, 2026 at 6:39 pm

    This is absolutely possible. Here’s how you do it:

    @font-face {
        font-family: 'PTSans';
        src: url('pts55f-webfont.eot');
        src: url('pts55f-webfont.eot?#iefix') format('embedded-opentype'),
             url('pts55f-webfont.woff') format('woff'),
             url('pts55f-webfont.ttf') format('truetype'),
             url('pts55f-webfont.svg#PTSansRegular') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }
    
    @font-face {
        font-family: 'PTSans';
        src: url('pts56f-webfont.eot');
        src: url('pts56f-webfont.eot?#iefix') format('embedded-opentype'),
             url('pts56f-webfont.woff') format('woff'),
             url('pts56f-webfont.ttf') format('truetype'),
             url('pts56f-webfont.svg#PTSansItalic') format('svg');
        font-weight: normal;
        font-style: italic;
    
    }
    
    @font-face {
        font-family: 'PTSans';
        src: url('pts75f-webfont.eot');
        src: url('pts75f-webfont.eot?#iefix') format('embedded-opentype'),
             url('pts75f-webfont.woff') format('woff'),
             url('pts75f-webfont.ttf') format('truetype'),
             url('pts75f-webfont.svg#PTSansBold') format('svg');
        font-weight: bold;
        font-style: normal;
    
    }
    
    @font-face {
        font-family: 'PTSans';
        src: url('pts76f-webfont.eot');
        src: url('pts76f-webfont.eot?#iefix') format('embedded-opentype'),
             url('pts76f-webfont.woff') format('woff'),
             url('pts76f-webfont.ttf') format('truetype'),
             url('pts76f-webfont.svg#PTSansBoldItalic') format('svg');
        font-weight: bold;
        font-style: italic;
    
    }
    

    When you define the @font-face fonts, make sure that all your font-family names are the same. Then set the font-weight and font-style correctly for each font. So if a font is bold, set font-weight: bold. etc.

    Then in your CSS you can do:

    body {
        font-family: 'PTSans';
    }
    

    And the various tags <strong> <em> etc will pick the correct font that matches.

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

Sidebar

Related Questions

Let's say I have a structure named vertex with a method that adds two
Let's say I have an facebook application running using the JS SDK. First user
Let's say I have multiple requirements for a password. The first is that the
Let's say that I have a date in R and it's formatted as follows.
Let's say I'm writing a PHP (>= 5.0) class that's meant to be a
Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12,
Let's say an operating system is installed on a computer and a DBMS is
Let's say that I have a set of relations that looks like this: relations
Let's say I have a dataset, which can be neatly classified using weka's J48
Let's say I have the following function in C#: void ProcessResults() { using (FormProgress

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.