Solved

text type

Posted on 2006-06-22
7
307 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
ID: 16961172

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
ID: 16962438

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
ID: 16962481

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:khaled22
ID: 16962845

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
ID: 16962897

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
ID: 16963127

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

thanks
0
 
LVL 7

Expert Comment

by:geordie007
ID: 16967221

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

929 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

12 Experts available now in Live!

Get 1:1 Help Now