Solved

text type

Posted on 2006-06-22
7
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

729 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