Font substitutions

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Newby question.

Is there a way in the DESIGN tab to indicate preferred font in a STYLE with
descending preferences in case the viewer does not have the font you
designed for?

A colleague says I can put this in the /HEAD in the CODE tab, but I'm not
much of a raw code guy. Any suggestions or pointers to an on-line tutorial
for this. FP HELP doesn't seem to get me there.

Thanks,
Tim


<STYLE type="text/css">


BODY, TD { font-family: Trebuchet MS, Tahoma, helvetica, arial, sans;
font-size: x-small;
line-spacing: 200%;
{
</STYLE>
 
Here's an example, that goes in the head tags.

<style type="text/css">
body{
font-style: normal; font-variant: normal; font-weight: bold; font-size:
14px; font-family: "Comic Sans MS", sans-serif, Arial, Helvetica, Verdana;
}
</style>

Note that fonts with multiple words in their name need the name enclosed in
quotes

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
So you DO have to monkey with RAW code in the CODE tab. No menu for this in
the DESIGN tab somewhere?

Thanks for the code example.

Tim
 
Not if you want to specify a font and then specify font substitutions.
You can also specify this in an external style sheet and apply it to the
page, or the entire web.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
No, you can type the list of fonts, separated by commas, into any FrontPage
dialog box that accepts a font name.

I've been bugging Microsoft through several releases to display separate
Fonts To Use and Fonts Available list boxes, with Use, Don't Use, Move Up,
and Move Down buttons. Oh well.

--
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Learn something every day.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Not sure what you mean - I'd like to be able to choose groups of fonts, so
you could select say
"Trebuchet MS", Arial, Helvetica, sans-serif
Georgia, "Times New Roman", Times, serif
as a group. I think the problem here is that the developers of FP don't
actually use it to build websites - they might learn somethng if they did
:-)

Jon
Microsoft MVP - FP
 
Why have I seen fonts listed like this: arial, Arial...
I've only seen it done with Arial not any other font face.


| No, you can type the list of fonts, separated by commas, into any FrontPage
| dialog box that accepts a font name.
|
| I've been bugging Microsoft through several releases to display separate
| Fonts To Use and Fonts Available list boxes, with Use, Don't Use, Move Up,
| and Move Down buttons. Oh well.
|
| --
| Jim Buyens
| Microsoft FrontPage MVP
| http://www.interlacken.com
| Author of:
| *----------------------------------------------------
| |\---------------------------------------------------
| || Microsoft Office FrontPage 2003 Inside Out
| ||---------------------------------------------------
| || Web Database Development Step by Step .NET Edition
| || Microsoft FrontPage Version 2002 Inside Out
| || Faster Smarter Beginning Programming
| || (All from Microsoft Press)
| |/---------------------------------------------------
| *----------------------------------------------------
|
|
| | > So you DO have to monkey with RAW code in the CODE tab. No menu for this
| in
| > the DESIGN tab somewhere?
| >
| > Thanks for the code example.
| >
| > Tim
| >
| > | > > Here's an example, that goes in the head tags.
| > >
| > > <style type="text/css">
| > > body{
| > > font-style: normal; font-variant: normal; font-weight: bold; font-size:
| > > 14px; font-family: "Comic Sans MS", sans-serif, Arial, Helvetica,
| Verdana;
| > > }
| > > </style>
| > >
| > > Note that fonts with multiple words in their name need the name enclosed
| > in
| > > quotes
| > >
| > > --
| > > Steve Easton
| >
| >
|
|
 
Jon said:
Not sure what you mean - I'd like to be able to choose groups of fonts, so
you could select say
"Trebuchet MS", Arial, Helvetica, sans-serif
Georgia, "Times New Roman", Times, serif
as a group.

Well, for that you have to set up a style such as:

..treb {font-family: "Trebuchet MS", Arial, Helvetica, sans-serif,
Georgia, "Times New Roman", Times, serif; }

and then assign the "treb" style via the Style button on a dialog box
or a class= attribute on an HTML element.

But the question was, "Can you build a style like that via the GUI?"
And the answer is Yes:

1. Choose Style from the Format menu.
2. Click New.
3. Type .treb in the Name (Selector) text box.
4. Click Format, then Font.
5. In the Font drop-down list, single-click Trebuchet MS.
6. In the Font text box, set teh insertion point after Trebuchet MS,
then type:
, Arial, Helvetica, sans-serif, Georgia, "Times New Roman", Times,
serif
I think the problem here is that the developers of FP don't
actually use it to build websites - they might learn somethng if they did
:-)

Jon
Microsoft MVP - FP

Well, they do run focus groups and usability studies. But I do
sometimes wonder if the composition includes too many corporate types
and not enough artists.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Hi Jim,
I know how to do it - my point is I'd like the font box to have the common
font groups that we all use at the top of the list followed by individual
fonts - something like this
Trebuchet MS, Arial, Helvetica, sans-serif
Georgia, Times New Roman, Times, serif
Arial, Helvetica, sans-serif
Courier New, Courier, Monospace
....etc
....now the individual fonts

This way you can select a group of fonts as one without having to build the
group up font by font. For most of us this would be a time saver and for
"newbies" it might serve as a hint that it's not a good idea to choose
something like monotype corsiva on a web page :-)

Jon
Microsoft MVP - FP
 
The REAL solution, IMHO, is to:

1. Do away with the Font dialog box except when defining a style rule.
2. Improve the Font dialog that appears when defining a style rule.
3. Provide GUI support for <span>s.

Then, after selecting text, you would choose Format Span rather than
Format Font. The Format Span dialog box would contain a list of
currently-available style rules, and a button for creating new rules.

The problem, of course, is that a newbie working on his or her first
page would need to perform three or four steps the first time they
wanted to change a font or make something bold.

The concept of first defining named styles and then applying those
styles met some market resistance six or eight years ago in Word, and
now the Office team seems to take it as gospel that you don't do that.

Plus, there's some ugliness if you format the first two words in
Man Bites Dog
with one style, and then format the last two words with a different
style.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
I agree. At the moment FP tries to cater to 2 markets - the guy who wants to
build serious web sites and the guy who can use Word and wants to be able to
pick up FP and use it the same way as Word. I don't think FP can serve both
of these markets - there has to be a choice made.

A serious web developer isn't going to convert from Dreamweaver when he sees
things like clicking a <p> tag let's you set indents and margins (as an
inline style) or let's you set font sizes in Pts and makes it difficult to
choose a group of fonts - things like that make no sense on the web but
perfect sense in Word.

On the other hand a Word user isn't going to use FP if he has to define a
named style before he can apply it - this makes sense on the web but not
much sense in Word.

There's probably a good case for 2 versions of FP - one for developers and
one for casual users. Or at least for FP to decide which market it wants to
serve and go after that 1 market - not both

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top