Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,578 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,962 people online right now. Registration is fast and FREE... Join Now!




Serious problem with font-family property

 
Reply to this topicStart new topic

Serious problem with font-family property

cygnusX
29 Sep, 2008 - 01:53 AM
Post #1

D.I.C Head
**

Joined: 19 May, 2007
Posts: 159



Thanked: 2 times
My Contributions
CODE
.bText{color:#000000;
  font-family:Segoe UI, Verdana;
  font-weight:normal;
  font-size:small;}
.bText:hover{color:#FFFFFF;}


Why "font-family:Segoe UI, Verdana;" does nothing?It worked before,i mean i've preinstalled my Windows and then this stop working properly,everything is fine except the font-family property...When i use that style on some text,the text is represented by the default font.What's the problem?

This post has been edited by cygnusX: 29 Sep, 2008 - 01:56 AM
User is offlineProfile CardPM
+Quote Post

pemcconnell
RE: Serious Problem With Font-family Property
29 Sep, 2008 - 03:51 AM
Post #2

D.I.C Regular
Group Icon

Joined: 5 Aug, 2008
Posts: 396



Thanked: 37 times
Dream Kudos: 75
My Contributions
Type the following into run:

fonts

That should open your windows font folder. You system (including CSS) can only display font's that you have installed on your system, which should be in that folder, so have a look through and see if Segoe UI is there. Either way it sounds like you will need to install it again so a google search on the font name should sort you out

Hope that helps smile.gif
User is offlineProfile CardPM
+Quote Post

jjsaw5
RE: Serious Problem With Font-family Property
29 Sep, 2008 - 03:52 AM
Post #3

I must break you
Group Icon

Joined: 4 Jan, 2008
Posts: 1,404



Thanked: 6 times
Dream Kudos: 125
Expert In: HTML, CSS, Database,

My Contributions
QUOTE(cygnusX @ 29 Sep, 2008 - 04:53 AM) *

CODE
.bText{color:#000000;
  font-family:Segoe UI, Verdana;
  font-weight:normal;
  font-size:small;}
.bText:hover{color:#FFFFFF;}


Why "font-family:Segoe UI, Verdana;" does nothing?It worked before,i mean i've preinstalled my Windows and then this stop working properly,everything is fine except the font-family property...When i use that style on some text,the text is represented by the default font.What's the problem?




Try this


CODE
font: 11px Segoe UI, Verdana;
hover color:#FFFFFF;


Take out the font-size you can declare that by changes the 11px number. Also are those fonts defaults on your computer or are they ones you have downloaded and added to your library? I have never heard of them.

This post has been edited by jjsaw5: 29 Sep, 2008 - 03:53 AM
User is offlineProfile CardPM
+Quote Post

cygnusX
RE: Serious Problem With Font-family Property
29 Sep, 2008 - 04:53 AM
Post #4

D.I.C Head
**

Joined: 19 May, 2007
Posts: 159



Thanked: 2 times
My Contributions
QUOTE(pemcconnell @ 29 Sep, 2008 - 04:51 AM) *

That should open your windows font folder. You system (including CSS) can only display font's that you have installed on your system, which should be in that folder, so have a look through and see if Segoe UI is there. Either way it sounds like you will need to install it again so a google search on the font name should sort you out

Yes,i do not have this font installed.It worked before,i don't know how.Ok,anyway...what i want to do is to represent the text in my site like in Safari.See this.
User is offlineProfile CardPM
+Quote Post

pemcconnell
RE: Serious Problem With Font-family Property
29 Sep, 2008 - 06:57 AM
Post #5

D.I.C Regular
Group Icon

Joined: 5 Aug, 2008
Posts: 396



Thanked: 37 times
Dream Kudos: 75
My Contributions
If I have understood correctly and you mean you want your font to look like the fonts on that screen grab, you might be in for a heck of a lot of tweaking.

Safari - I may be corrected on this - uses it's own redering engine for fonts, meaning that it can apply 'clearType' to any font - means that it blurs them slightly to make them clearer - sounds like a contradiction, but it works strangely. Windows itself has this feature, but even if switched on, I don't think effects web browsers fonts - again I may be corrected on that.

So, I'm afraid you're in for a lot of tweaking and trial and error. A personal fav is Myriad Web, font size 11px, a lot of other sites user Verdana 11px etc.

I'll be keeping a close eye on this one though because if there is a way to force clearType fonts onto browsers I'd love to know about it smile.gif

Good Luck
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:21AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month