View Single Post
Old 05-22-2011, 02:12 PM   #20
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by bobcdy View Post
crutledge,
I slightly changed the css as far as the font imports is concerned, and cleared most of the rest of the css, and it works now. I don't really know why but clearing the css seemed to be important. Anyway here's your modified file, and perhaps it will help you diagnose the problem.
Bob
Well, I finally got it. As is said: Even a blind hog finds an acorn once in a while.

Browsers allow a lot of sloppy coding, but after an lot of researceh on @font-family, very careful scrubbing of the CSS (spaces are some times hard the see or not see so I finally adjusted my editor to indicate spaces) , my html file went through Sigil. This was after I loaded the font to Fonts and adjusted the Sigil CSS to show ../Font ...

A wonderful feeling of accomplishment and then wondering what was su hard.

Many thanks for all the help.

I don't know if anyone will be interested but below are the results of my search for dummy-data on @font-face:

@font-face {
font-family: MyName;
font-style: normal;
font-weight: normal;
src:url(../Fonts/"Any Font.ttf");
}

DEFINITIONS

font-family: Any name to be used in STYLES. Must be enclosed in "" if spaces appear in the name.
Example: font-family: MyName; font-family: "My Name";

font-style:normal
font-style:italic
font-styleblique

font-weight:normal
font-weight:bold
font-weight:900


normal: Defines normal characters. This is default
bold: Defines thick characters
bolder: Defines thicker characters
lighter: Defines lighter characters

100: Defines from thin to thick characters.
200
300
400: same as normal
500
600
700: same as bold
800
900

src:url Font file name must be enclosed in "" if spaces appear in file name.
src:url(../Fonts/AnyFont.ttf); src:url(../Fonts/"Any Font".ttf);
crutledge is offline   Reply With Quote