Solved

text type

Posted on 2006-06-22
7
295 Views
Last Modified: 2013-12-03

hi team,

sometimes i see a nice font type but cant findout in the source code of the website wich kind of font is used.

i read the following thing:

 <script type="text/javascript" language="JavaScript1.2" src="menu/stm31.js"></script>
<script language="JavaScript" type="text/JavaScript">

how can i findout wich font is used?
and wich fonts are websave to use inorder to display good on moste pc's?

thanks  

0
Comment
Question by:khaled22
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

by:geordie007
Comment Utility

the code you've posted is javascript. that doesn't effect the font - of course, it *can* but 99 times out of 100, that won't be what you're after. what you need to look for is:

<link rel="stylesheet" type="text/css" href="css/css.css" />

or:

<style type="text/css" media="screen">@import "/css/css.css"; </style>

or basically any reference to a .css (style sheet) file. open that and do a search/find for "font" and/or "font-family". that will show you the font that is being used (or a list of fonts that the developer wanted to use in order of preference).

as for system fonts (web safe as you say), always do a google for this whenever you want to use a font that you're not sure about. it's better to always do a search, as obviously things can change with new operating systems, upgrades, service packs, etc.

a current search brought up this for windows:

http://www.kayskreations.net/fonts/fonttb.html

but you'd need to do one for macs aswell and see which ones appear on both.

cheers
0
 

Author Comment

by:khaled22
Comment Utility

hi,

thanks for your answer but how and where to open this .CSS file from out of the sourcecode?

i have found the following:

<link href="css/incredible.css" rel="stylesheet" type="text/css">

is that the same?

thanks!
0
 
LVL 7

Expert Comment

by:geordie007
Comment Utility

ok. hopefully you use firefox. if you do, use this as an example:

you go to www.website.com, view source, and you see this:

<link href="css/incredible.css" rel="stylesheet" type="text/css">

if you're using firefox (or safari), you can now simply visit www.website.com/css/incredible.css and you will see the stylesheet in your browser.

if you use internet explorer, it's a little trickier. you'll need to download the file. to do this, you could just create a link to it on an html page, open it in internet explorer, right click, and "save target as..." to your desktop. you can then open it in - for example - notepad.

if this doesn't make sense, post the link of the site that you like the font, and i'll post the stylesheet.

cheers

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:khaled22
Comment Utility

thanks man!

i use ie but have installed firefox to try it and indeed i found the following:

body {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      color: #000000;
      margin: 0px;
      background-color: #666666;
      background-image: url(../images/site_bg.gif);
}

now tell me,wich one has thiswebmaster used then?Verdana,Arial or Helvetica?or is all?

thanks!
0
 
LVL 7

Accepted Solution

by:
geordie007 earned 80 total points
Comment Utility

when there is a list of fonts, like that, the developer is basically saying "if this user has verdana, use that. if the user hasn't, use arial. if the user doesn't have that either, use helvetica. if we still haven't got a match, use any sans-serif font". as verdana is available on both PC and Mac, i'd bet my last penny that you are looking at verdana when you view that webmaster's site.

cheers
0
 

Author Comment

by:khaled22
Comment Utility

and how do i know wich font is used for the buttons(dropdown buttons)?

thanks
0
 
LVL 7

Expert Comment

by:geordie007
Comment Utility

exactly the same way. just do a search/find for all the references to font or font-family. that will build you a list of every font used. i guess by "buttons(dropdown buttons)" you mean <select> elements, so just look for what font was specified for select elements.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now