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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:37:26+00:00 2026-06-13T18:37:26+00:00

I need to sniff the formatting for a <p> so I can pass the

  • 0

I need to sniff the formatting for a <p> so I can pass the info to an <iframe> and match formats.

I can get the font face using jQuery

var font = $("p").css('font-family');
var fsiz = $("p").css('font-size');

However if the font-family is a web font – eg “Open Sans” I also need to find the src for the @font-face rule that loaded it.

I have no idea how to do that.

  • 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-13T18:37:28+00:00Added an answer on June 13, 2026 at 6:37 pm

    Find all css-defined fonts, demo here (console).

    function getFonts (obj) {
        var o = obj || {},
            sheet = document.styleSheets,
            rule = null,
            i = sheet.length, j;
        while( 0 <= --i ){
            rule = sheet[i].rules || sheet[i].cssRules || [];
            j = rule.length;
            while( 0 <= --j ){
                if( rule[j].constructor.name === 'CSSFontFaceRule' ){ // rule[j].slice(0, 10).toLowerCase() === '@font-face'
                    o[ rule[j].style.fontFamily ] = rule[j].style.src;
                };
            }
        }
        return o;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need python script that can sniff and decode SIP messages in order to
I need to sniff TCP traffic into my application. Can libpcap reassemble TCP segments
I am trying to sniff HTTP data through libpcap and get all the http
I need to trace/sniff http traffic from other machines (for example from my android
How can I sniff and analyze Java RMI traffic ? There is only very
Need help with implementing a pure abstract class via inheritance , using namespace to
I would like to Sniff/Listen on port 80 requests/responses. Can it be done with
I am using bind/unbind for mousewheel scrolling, based on this SO response: Jquery, unbinding
Need some advice to use iframe for widget or not. Will some addons/plugin block
Need to be able to read an Excel file uploaded using FileUploadControl in ASP.NET.

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.