Thread: verifying html
View Single Post
Old 08-29-2010, 12:19 PM   #8
JaneFancher
Zealot
JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.JaneFancher has a complete set of Star Wars action figures.
 
JaneFancher's Avatar
 
Posts: 123
Karma: 496
Join Date: Feb 2009
Location: Spokane, Washington
Device: Kindle2
As always...thanks, everyone.

Sorry about the length. Code, you know.

I got an html validator plugin for FireFox which routed out some redundant code, but ADE still won't display the fonts. The css validator Charleski recommended complained about a few things (all font and image related), but the exact code it complains about is present in the file that displays properly, so I don't think that can be the problem.

Here's the complete CSS code for the file that WON'T display fonts:

@namespace h "http://www.w3.org/1999/xhtml";

@font-face {
font-family: "BlackChancery";
font-style: normal;
font-weight: normal;
src:url(../Fonts/BlackChancery.ttf) format(opentype);;
}

@font-face {
font-family: "Stowe Open Face";
font-style: normal;
font-weight: normal;
src:url(../Fonts/STOWE_OF.ttf) format(opentype);;
}

@font-face {
font-family: "Arabella";
font-style: normal;
font-weight: normal;
src:url(../Fonts/Arabella.ttf) format(opentype);;
}

@font-face {
font-family: "PP Handwriting";
font-style: normal;
font-weight: normal;
src:url(../Fonts/hand.ttf) format(opentype);;
}


@font-face {
font-family: "Hand Me Down S (BRK)";
font-style: normal;
font-weight: normal;
src:url(../Fonts/handmeds.ttf) format(opentype);;
}


.calibre {
display: block;
font-family: serif;
font-size: 1em;
font-style: normal;
font-weight: normal;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
page-break-before: always
}
.calibre1 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-indent: 0.2in
}
.calibre10 {
font-family: "Stowe Open Face", serif
}
.calibre11 {
background-color: black;
border: 1px inset;
color: gray;
display: block;
height: 0.0125in;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
margin-top: 0.5em
}
.calibre12 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
page-break-before: always;
text-align: justify;
text-indent: 0.2in
}
.calibre13 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 0.2in
}
.calibre14 {
font-weight: bold
}
.calibre15 {
color: blue;
cursor: pointer;
text-decoration: none
}
.calibre16 {
height: 300;
width: 292
}
.calibre17 {
font-size: 0.75em;
line-height: normal;
vertical-align: super
}
.calibre18 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0
}
.calibre19 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
page-break-before: always
}
.calibre2 {
display: block;
font-size: 2em;
font-weight: bold;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0.67em;
page-break-before: always;
text-align: center
}
.calibre20 {
height: 632;
width: 423
}
.calibre21 {
font-size: 2em
}
.calibre22 {
font-style: italic
}
.calibre23 {
display: block;
page-break-after: always
}
.calibre24 {
font-size: 0.70833em
}
.calibre25 {
display: block;
font-size: 1.41667em;
font-weight: bold;
margin-bottom: 0.83em;
margin-left: 0;
margin-right: 0;
margin-top: 0.83em;
page-break-before: always;
text-align: center
}
.calibre26 {
font-size: 0.79412em
}
.calibre27 {
font-size: 1.125em
}
.calibre28 {
font-family: "Arabella", serif
}
.calibre29 {
font-family: "Hand Me Down S (BRK)", serif
}
.calibre3 {
color: inherit;
cursor: inherit;
text-decoration: inherit
}
.calibre30 {
display: block;
margin-bottom: 1px;
margin-left: 3.5in;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: -3.3in
}
.calibre31 {
font-family: "PP Handwriting", serif
}
.calibre32 {
display: block;
margin-bottom: 1px;
margin-left: 0.5in;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: -0.3in
}
.calibre33 {
display: block;
margin-bottom: 1px;
margin-left: 2in;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: -1.8in
}
.calibre4 {
font-family: "BlackChancery", serif
}
.calibre5 {
font-size: 0.83333em
}
.calibre6 {
display: block
}
.calibre7 {
font-size: 1em
}
.calibre8 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center
}
.calibre9 {
font-size: 0.75em
}

Here's the code for the file that DOES display properly:

@namespace h "http://www.w3.org/1999/xhtml";

@font-face {
font-family: "Hanford Script";
font-style: normal;
font-weight: normal;
src:url(../Fonts/HANFORD_.TTF) format(opentype);;
}

@font-face {
font-family: "BlackChancery";
font-style: normal;
font-weight: normal;
src:url(../Fonts/BlackChancery.TTF) format(opentype);;
}

@font-face {
font-family: "Blaster";
font-style: normal;
font-weight: normal;
src:url(../Fonts/blaster.ttf) format(opentype);;
}
@font-face {
font-family: "PP Handwriting";
font-style: normal;
font-weight: normal;
src:url(../Fonts/hand.ttf) format(opentype);;
}

@font-face {
font-family: "Stowe Open Face";
font-style: normal;
font-weight: normal;
src:url(../Fonts/STOWE_OF.TTF) format(opentype);;
}

@font-face {
font-family: "Disciple";
font-style: normal;
font-weight: normal;
src:url(../Fonts/Disciple-Regular.ttf) format(opentype);;
}

.calibre {
display: block;
font-family: serif;
font-size: 1em;
font-style: normal;
font-weight: normal;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
page-break-before: always;
text-align: justify
}




.calibre1 {
display: block;
font-size: 2em;
font-weight: normal;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0.67em;
page-break-before: always;
text-align: left
}
.calibre10 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
page-break-before: always
}
.calibre11 {
font-size: 1.66667em
}
.calibre12 {
font-size: 0.83333em
}
.calibre13 {
text-decoration: underline
}
.calibre14 {
display: block
}
.calibre15 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 0.2in
}
.calibre16 {
height: 286;
width: 277
}
.calibre17 {
font-style: italic
}
.calibre18 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify
}
.calibre19 {
font-size: 0.64516em
}
.calibre2 {
font-size: 1em
}
.calibre20 {
text-decoration: none
}
.calibre21 {
height: 555;
width: 370
}
.calibre22 {
font-size: 2em
}
.calibre23 {
display: block;
page-break-after: always
}
.calibre24 {
display: block;
font-size: 2em;
font-weight: normal;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0.67em;
text-align: justify
}
.calibre25 {
display: block;
font-size: 1.66667em;
font-weight: normal;
margin-bottom: 0.83em;
margin-left: 0;
margin-right: 0;
margin-top: 0.83em;
text-align: justify;
text-indent: 0.2in
}
.calibre26 {
font-size: 0.775em
}
.calibre27 {
font-family: "Blaster", serif
}
.calibre28 {
font-family: "BlackChancery", sans-serif
}
.calibre3 {
font-family: "Hanford Script", fantasy
}
.calibre30 {
font-family: "PP Handwriting", serif
}
.calibre31 {
font-family: "Disciple", cursive
}
.calibre4 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: left
}
.calibre5 {
font-family: "Stowe Open Face", serif
}
.calibre6 {
font-size: 1.29167em
}
.calibre7 {
background-color: black;
border: 1px inset;
color: gray;
display: block;
height: 0.0125in;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
margin-top: 0.5em;
text-align: left
}
.calibre8 {
background-color: black;
border: 1px inset;
color: gray;
display: block;
height: 0.0125in;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
margin-top: 0.5em
}
.calibre9 {
display: block;
margin-bottom: 1px;
margin-left: 0;
margin-right: 0;
margin-top: 0
}
a {
color: inherit;
text-decoration: inherit;
cursor: default
}
a[href] {
color: black;
text-decoration: none;
cursor: pointer
}

Whatever the differences are, they seem pretty obscure to me. I'm really starting to understand why publishers throw up their hands and just put any old thing out there! You'd think Adobe would be clever enough to make their reader less of a perfectionist.
JaneFancher is offline   Reply With Quote