11 Replies Latest reply: Feb 11, 2012 10:58 AM by BioRich
ted007 Level 1 Level 1 (0 points)

How do I change the default font in Pages?


I Mac, Mac OS X (10.4.8)
  • 1. Re: How do I change default font?
    Jerrold Green1 Level 7 Level 7 (28,995 points)

    Create a blank document with your preference of font and any other settings that are important to you.  Then, File > Save As Template.

     

    Jerry

  • 2. Re: How do I change default font?
    Peggy Level 8 Level 8 (38,230 points)

    Just more detail than Jerry wrote.

     

    You need to create your own default template. Set up your document with the line spacing, margins, headers, etc. as you'd like. Redefine all of the paragraph & character styles to have your desired font.

     

    While you're at it, you might want to set default styles for all objects, text boxes, tables, paragraph styles, etc. Start with a blank document & insert an object. Change the color, wrap, etc. to your choosing & then go to Format > Advanced > Define Default Shape Style then delete the object. Repeat with an image/photo, a text box & a table.

     

    Now, save this as a template then, in Pages > Preferences, select this template as the default for new documents. All of your new documents will have these settings for inserted objects, images & tables. Unfortunately, the settings won't apply to any other templates or "foreign" documents you open with Pages.

     

  • 3. Re: How do I change default font?
    Jeff Kash Level 1 Level 1 (60 points)

    Thank you for this explanation. I easily created a new template, which I had wondered how to do for a long time.

  • 4. Re: How do I change default font?
    Peggy Level 8 Level 8 (38,230 points)

    You're welcome.

     

  • 5. Re: How do I change default font?
    simondbowler Level 1 Level 1 (0 points)

    Hi Peggy,

    As an extension to this discussion, how do I modify the "Blank" template that comes with Pages so that when I open a .txt document it is formatted the way I need?

    In other discussions I have read of replacing the pre-installed "Blank" with one of your own creation by navigating to a folder.

    I'm using a standalone copy of Pages 09 (ie no iWork) and cant find such a folder.  A spotlight search of the other templates I have created doesnt find a location.

    Many thanks

    Simon Bowler

  • 6. Re: How do I change default font?
    Peggy Level 8 Level 8 (38,230 points)

    As I said, previously saved documents & imported documents such as Word, text or RTF, are not affected by the template you create & then designate as default. You can copy & paste the contents into a new Pages document created from your default, but it doesn't normally pick up the styles unless by some remote chance the document has styles with the same names.

     

    As for the location of the folder of your templates, it should be in HD > Users > (your account) > Library > Application Support > iWork > Pages > Templates > My Templates. I do not have the stand-alone version of Pages &, until Apple releases new versions I can buy from the Mac App Store, I have no way to confirm this. Do remember that Spotlight doesn't check every where & there is no way to have it look inside any of the Library folders. I prefer to use Find Any File.

    templates1.png

     

  • 7. Re: How do I change default font?
    simondbowler Level 1 Level 1 (0 points)

    Thanks for that Peggy - I located the template I designed with your assistance.

     

    But I'm disappointed to hear I can't influence the appearance of an imported .txt documents.  I deal with a vast number of these and save them for future access and I need a non-proportional font etc etc. The default is Helvetica 12 for Pages - Courier 10.5 for Word.  The latest iteration of Word has all sort of problems and I'd like to switch to Pages but that would be logistically impossible if I had to apply a template to the 60-70 files I open.

    No other thoughts?

    Cheers

    SB

  • 8. Re: How do I change default font?
    Peggy Level 8 Level 8 (38,230 points)

    You probably can change the defaults for imported documents but it would require a braver person than I. You'd have to edit a resource file in the application. If you want to try, always work on a copy. Yvan Koenig may have some tips. I know he has done "surgery" on application files before.

     

  • 9. Re: How do I change default font?
    mjgcae Level 1 Level 1 (0 points)

    As a recovering Microsoft Office user, new to Pages:  THANK YOU. this is very helpful.

     

    Is there a way to similarly modify the default styles for new documents in the iOS version of pages on my iPad?

  • 10. Re: How do I change default font?
    Level 8 Level 8 (41,760 points)

    Hello Peggy

     

    I apologize but I didn't found a way to change the behavior of the importer tools.

     

    Here is an alternate answer :

    Use this script to open your text files.

    I inserted several instructions setting some properties.

    You may easily customise it.

    It embed the list of the properties which may be set this way.

    Take care of the comment related to the property color.

    I didn't tested if the oddity strikes also upon other properties related to color but I guess that you will not use them.

     

    --{code}

    --[SCRIPT open_text_file]

    (*

    Enregistrer le script en tant que Script : open_text_file.scpt

    déplacer le fichier ainsi créé dans le dossier

    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:

    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.

     

    Aller au menu Scripts , choisir Pages puis choisir “open_text_file”

    Le script ouvrira le fichier et lui appliquera la police Courier et quelques autres attributs.

     

    On peut également enregistrer le script en tant qu'application.

    On peut alors :

    l'installer dans le dossier Scripts comme ci-dessus

    l'installer dans le dossier Applications ou sur le bureau.

    Il sera alors possible de l'exécuter comme toute application ou par un glisser-déposer d'un fichier texte.

     

    --=====

     

    L’aide du Finder explique:

    L’Utilitaire AppleScript permet d’activer le Menu des scripts :

    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.

    Cochez la case “Afficher le menu des scripts dans la barre de menus”.

    Sous 10.6.x,

    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript

    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.

     

    --=====

     

    Save the script as a Script: open_text_file.scpt

     

    Move the newly created file into the folder:

    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:

    Maybe you would have to create the folder Pages and even the folder Applications by yourself.

     

    Go to the Scripts Menu, choose Pages, then choose “open_text_file”

    The script will open the file and apply the font Courier and some other attributes.

     

    We may also save the script as an application.

    In this case we may :

    store it in the Scripts folder as above

    store it in the Applications folder or on the Desktop.

    In this case we may run it like every application or drag and drop on it a text file.

     

    --=====

     

    The Finder’s Help explains:

    To make the Script menu appear:

    Open the AppleScript utility located in Applications/AppleScript.

    Select the “Show Script Menu in menu bar” checkbox.

    Under 10.6.x,

    go to the General panel of AppleScript Editor’s Preferences dialog box

    and check the “Show Script menu in menu bar” option.

     

    --=====

     

    Yvan KOENIG (VALLAURIS, France)

    2011/11/09

    *)

    --=====

     

    property le_fichier : ""

     

    --=====

     

    script main

      (*

    Requires the property le_fichier *)

              tell application "Pages"

      open le_fichier

      (*

    ruler units (centimeters/inches/picas/points)  *)

                        set ruler units to centimeters

     

                        tell document 1

                                  (*

    >>>>>>>  Here is the list of document's properties which may be defined with this script.

     

    body text (text) : The main text flow of the document.

    bottom margin (real) : The bottom margin of the publication.

    facing pages (boolean) : Whether or not the view is set to facing pages.

    footer margin (real) : The footer margin of the publication.

    header margin (real) : The header margin of the publication.

    inside margin (real) : The inside margin of the publication when facing pages is enabled.

    left margin (real) : The left margin of the publication.

    outside margin (real) : The outside margin of the publication when facing pages is enabled.

    page attributes (page setup) : Page settings for printing

    right margin (real) : The right margin of the publication.

    selection (selection-object) : The current selection or insertion point. Use the "select" command to change the selection. Setting of this property replaces the current selected object. E.g., set selection of document 1 to "hello".

    top margin (real) : The top margin of the publication.

    *)

                                  set header margin to 0.0

                                  set footer margin to 0.0

                                  set top margin to 1.5

                                  set left margin to 1.5

                                  set right margin to 1.5

     

                                  tell body text

                                            (*

    >>>>>>>  Here is the list of text's properties which may be defined with this script.

     

    alignment (center/justify/left/right) : The horizontal alignment.

    baseline shift (real) : Raise or lower the target text.

    bold (boolean) : Whether the font style is bold.

    capitalization type (all caps/normal capitalization/small caps) : Whether a capitalization style is applied.

    character background color (color) : The color of the character's background.

    character style (character style) : The representative character style of the object.

    collapsed (boolean) : Whether the paragraph is collapsed in the outline view.

    color (color) : The color of the font.

    contents (any)

    first line indent (real) : The space between the first line of the paragraph and the left margin.

    following paragraph style (text) : The name of the following paragraph style. The empty string implies this style.

    font name (text) : The name of the font.

    font size (real) : The size of the font.

    hidden (boolean) : Whether the paragraph is hidden in the outline view.

    indent level (integer) : The list indent level assigned to the paragraph, from 1 through 9.

    italic (boolean) : Whether the font style is italic.

    keep lines together (boolean) : Keep all lines of the paragraph on the same page.

    keep with next paragraph (boolean) : Keep the target and following paragraph on the same page.

    label baseline shift (real) : The amount to move the label up or down relative to the first line of the paragraph.

    label image data (image binary) : The image used for the label.

    label indent (real) : The distance from the left margin to the list label.

    label size (real) : When "scale with text" is disabled the label size is a text point size for text labels or a multiplier of original image size for image labels. When enabled, it is always a multiplier of the representative font size of the paragraph.

    label type (image bullet/none/number/text bullet/tiered number) : The type of label to use.

    left indent (real) : The space between the paragraph and the left margin.

    ligatures (all ligatures/default ligatures/none) : Remove ligatures from the target text if the document is set to use ligatures.

    line spacing (real) : The amount of space between lines in the current spacing style.

    line spacing type (at least/inbetween/relative) : The type of line spacing.

    list style (list style) : The list style, if any, for the target.

    number label style (letter lower paren one/letter lower paren two/letter lower paren zero/letter upper paren one/letter upper paren two/letter upper paren zero/number paren one/number paren two/number paren zero/roman lower paren one/roman lower paren two/roman lower paren zero/roman upper paren one/roman upper paren two/roman upper paren zero) : The type of label for number and tiered number types.

    number label tiered (boolean) : Whether a numeric label displays the complete hierarchy for each level or just the label of the level.

    outline (boolean) : Whether the font style is outline.

    paragraph background color (color) : The color of the object's fill.

    paragraph style (paragraph style) : The representative paragraph style of the text.

    prevent widows and orphans (boolean) : Prevent the first or last line of a paragraph from appearing alone on a page.

    remove hyphenation (boolean) : Remove hyphenation from the paragraph if the document is set to hyphenate words automatically.

    right indent (real) : The space between the paragraph and the right margin.

    scale with text (boolean) : Whether the label size proportionally changes with the paragraph text size.

    shadow (boolean) : Whether the object casts a shadow or not.

    shadow angle (real) : The directional angle, in degrees, that the shadow is cast.

    shadow blur (integer) : The relative amount of blur of images seen through the shadow.

    shadow color (color) : The color of the shadow.

    shadow offset (real) : The offset from the text box content that the shadow extends to.

    shadow opacity (real) : The amount of opacity for the shadow, in percent.

    space after (real) : The space after the paragraph, in points.

    space before (real) : The space before the paragraph, in points.

    start new page (boolean) : Start the paragraph at the beginning of the next page.

    strikethrough color (color) : The color of the strikethrough line(s).

    strikethrough type (double strikethrough/none/single strikethrough) : Whether one or more lines are drawn through the characters.

    subscript (boolean) : Decrease the font size and lower the baseline of the text.

    superscript (boolean) : Decrease the font size and raise the baseline of the text.

    text indent (real) : The distance from the label to the text.

    text label string (text) : One to nine characters can be specified for a text label.

    tracking (real) : The space between text characters, in percent.

    underline color (color) : The color of the underline(s).

    underline type (double underline/none/single underline) : Whether the font style is underline.

    *)

                                            set font name to "Courier"

                                            set font size to 10.0

                                            set first line indent to 1.0

                                            (*

    CAUTION : I guess that it's a bug but we can't use 

    set color to {25700, 17990, 0}

    *)

                                            set properties to {color:{25700, 17990, 0}}

                                  end tell -- body text

                        end tell -- document

              end tell -- Pages

              set le_fichier to ""

    end script

     

    --=====

     

    on run

              set le_fichier to choose file of type {"public.plain-text"}

      run script main

    end run

     

    --=====

     

    on open sel

              set maybe to (item 1 of sel) as text

              tell application "System Events"

                        try

                                  set typeID to type identifier of disk item maybe

                        on error

                                  set typeID to ""

                        end try

              end tell

              if typeID is "public.plain-text" then

                        set le_fichier to maybe

      run script main

              end if

    end open

     

    --=====

    --[/SCRIPT]

    --{code}

     

    Yvan KOENIG (VALLAURIS, France)  mercredi 9 janvier 2011 18:07:52

    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2

    My iDisk is : <http://public.me.com/koenigyvan>


    Please : Search for questions similar to your own before submitting them to the community

     

     

  • 11. Re: How do I change default font?
    BioRich Level 1 Level 1 (65 points)

    Hi Peggy.  Question for you. 

     

    Heading 3 only arrives once I assign Heading 2.  Heading 4 only arrives once I assign Heading 3.  Upon formatting, I go to erase everything in the page, and the Heading 3 and Heading 4 styles disappear in the drawer.  Am I supposed to erase the copy so that it doesn't show up in the template when chosen?

     

    Confused.

     

    Cheers