Change font name/size in text box

I am trying to create a Pages document with text boxes and would like to use different fonts and sizes in each box. I've tried using
  make text box with properties {object text:receipt_date, vertical position:7, horizontal position:2.5, height:0.5, width:3, font name:"Courier", font size:24.0}
but it doesn't work.
Any help gratefully received.

I see two things; you should "make new text box" and font name and font size are properties of the text, not the text box.
The following worked for me:
set the_text to "Hello World!"
tell application "Pages"
          tell front document
                    set new_box to make new text box with properties {object text:the_text, vertical position:2, horizontal position:1, height:3, width:4}
                    set properties of object text of new_box to {font name:"Courier", font size:24.0}
          end tell
end tell
Edit: The "set new_box to" part isn't needed unless you want to refer to the box again in the script.

Similar Messages

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How Change Font or Font Size in Text Box???

    Adobe Acrobat 7
    How do I Change the Font or Font Size in Text Box that I have inserted in a previously created .pdf file.
    Could not find any info on this in Help file. Thanks for any help.

    Use the text touchup tool, select the text, and right click to change the properties. If you mean a different type of text box, then look for the same type of changes, but use the same tool you used to create the text.

  • Adobe Acrobat 9 Pro - editing font properties in a text box

    When I insert a text box on an existing PDF, initially Acrobat usually allows me to edit the font properties.  Sometimes it does not.  Once I type in the text box, the font properties toolbar becomes locked (i.e., "grayed out") so I can't change font type, size, color justification and other font properties.  If I save the file, close it and then re-open I can edit then the font, at least for a while.  If I have other PDF files open too I usually have to close those other windows.  After some time the font properties again become locked.
    Obviously it is incredibly inconvenient to have to close a program and all open files then re-open those files just to change something like the color of a font.  I called Adobe tech support and they told me the fix was to buy Acrobat X.  I don't want to spend more money, I just want the product I already paid for to work properly.
    Is there a way for this bug in the software to be corrected?

    ** SOLVED FOR ME **
    Acrobat 9.0 and 9.1 Standard
    No v9 properties toolbar access except in last document opened
    I don't know if this applies to you but I had a similar problem with documents on our network.
    It turns out the documents were being saved as PDF/A or PDF/X format.
    I had the users open up Adobe.  Go to Edit>Preferences      Then go to the Documents section and find the "Open in PDF/A" section.  I had them select "Never"  and then the toolbars were no longer greyed out.

  • How do i change the area of a text box (containg text) with the new 'shapes' transform tool..

    the new Illustrator CC 2014 wont let me change the area of a  text box, the text scales with the box.
    is there a setting im missing somewhere that allows me to change the area /shape of a text box like we could in CC and before?

    edit>preferences>type> uncheck "Auto size new area type"

  • When using the "Fill & Sign PDF" feature, is there a way to stretch to size the text box, for a specific area on the page...instead of it going on in one straight long line...?

    When using the "Fill & Sign PDF" feature, is there a way to stretch to size the text box on a specific area of the page...instead of the text box going on in one straight long line....? I'm not seeing there's an option or ability to do so, just wanting to confirm.

    Improving the handling of multiple line text fields is in our plans, but for now, you will have to add manual carriage returns (Enter).
    Thanks,
    Josh

  • How to increase the size of text boxes in FCPX without stretching the text inside?

    How to increase the size of text boxes in FCPX without stretching the text inside?

    There are two basic Title formats — I should say Layouts — available:  Text (plain) and Paragraph.  (The plain text version usually does not appear with the blue dot controls — those generally appear for the paragraph type control.)
    If the Title is using a Paragraph layout, it's like having a mini version of Text Edit available inside FCPX. You can tell when you click on the text (when the title is selected) -- a rectangle will appear around the text like so:
    double clicking on the text will give you the bounds controls which you can use to redefine the text area without distorting the text. Once selected, notice the button that appears in the top right corner of the canvas:
    Pressing that will activate the ruler. You can right click on the ruler and add Tab Stops (left, right, center and decimal.)
    So if the title uses paragraph formatting, you can create a very WYSIWYG type of display text (use the Text inspector to alter text selections within the paragraph bounds.)

  • How do you change the colour of the text box?

    A lot of the text box options seem different for DC. Is there a way to change the colour of the text box that you create/the borders etc.?
    In the past, you would just press Ctrl+E and a toolbar would pop up so that you could fiddle w/ the colour of the background etc. This seems to be gone.
    Thanks for your help!

    Hi, Rahul,
    Thank you for replying back.
    Unfortunately, I have tried what you have suggested and the only thing that I get is a box that says "Properties: No current selection."
    Could you please possibly see what it is that I am doing wrong?
    I created the text box, wrote whatever inside, clicked somewhere outside the box and then clicked on the text box and I still only get "Properties: No current selection."
    Thank you,
    Arrom

  • I am trying to change the name in my "from" box

    I am trying to change the name in my "from" box. My name has changed and although I have changed the name on the account, I can't figure out how to make the default name in my "from" box change from my previous name to my new name.

    You may need to know that (in Snow Leopard at least) you specify multiple possible "From" email addresses as a list separated by commas.  Just type them into that little Email Address box*: they'll move over to make room.  Then, on your new messages from that point on, a pop-up menu will appear for the From field.  Neat, eh?
    *-- Notice that you can lie in this box.  Your ISP might not let you get away with it, but spammers use this loophole.
    --Gil

  • I'm using pages.  How can I change the shape of a text box to arch?

    I'm using pages.  How can I change the shape of a text box to arch?

    You can't do that in Pages. If you need text in an arch use Art text 2 lite, free from the Mac AppStore.

  • Changes font and size when cutting and pasting

    Cutting and pasting in a document made with a single font and size results in the moved word changing font and size. Checked all preferences, etc. and can't figure it out. Thanks, Jim

    Hello
    Look at:
    http://discussions.apple.com/thread.jspa?messageID=607239
    Yvan KOENIG (from FRANCE mardi 26 septembre 2006 20:03:27)

  • Can anyone help me change fonts and size on my page? I don't understand the class questions?

    Can anyone help me change fonts and size on my page? I don't understand the class questions? All I want to do is change the font and size of a table or div.
    http://www.allgearinc.com/AG12SSWL-Swift.htm -One problem page

    If you want to change the fonts of the entire page then this code will do the trick:
    body {
        font-size: 16pt;
        color: silver;
         font-family: whatever, goes, here;
    If you want to change the fonts of ALL tables on a page then the code is something like this:
    table {
        font-size: 20pt;
        font-family: "Courier New", Courier, monospace;
        font-style: italic;
        font-weight: bold;
    what exactly do you want to change?  Can you be a bit specific so that Ben or Ken can give you the exact code and tell you about the short-hand method to write the code in one line.
    Have you bought a book on CSS yet?  If not, it is a good idea to get one as a reference.  Eric Meyer writes good books on CSS.

  • Font change when I make a text box transparent

    Hi All
    I have been using Captivate 4 for over a year and have just come across a strange event.
    When I change a text box caption type from a coloured background, such as adobe blue, adobe pop up etc, to transparent, the font type and style change from what I originally had and I am unable to change it back.
    For example I am using Verdana 12 black in adobe blue caption. When I change this to transparent the font style changes to something else, even though the application still says the font is Verdana 12 black. It is very obvious it is a different font to Verdana as the other text on the slide that has not been changed to transparent looks very different to the transparent text box font.
    This font looks nothing like Verdana as it is smaller and thicker; it resembles Arial Black though it is not quite that either.
    This change occurs when I am using a text box on its own or a text box associated with a roll over slidelet.
    Does anyone have any idea what is happening, and should I post this in bug fixes?
    cheers
    thedarf

    Hi there
    In addition to Lilybiri's advice, you can also typically achieve the desired effect by editing the Text Caption and positioning the cursor at the end of all text. Just press Ctrl+End to do this. Then press Enter a couple of times to introduce a couple of blank lines. Then format the last line as bulleted. After that, adjust the size of the caption so you don't see the bulleted blank line.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • How do I change the colour of my text box?

    Hey
    What would I add to this code:
    <td width="3"><input name="question" type="text" id="subject" value="Here" size="50" /></td>
    To make the input box black?
    Thank You

    Or, adding css to just the input...
    <input name="question" type="text" id="subject" value="Here" size="50" style="background-color:black; color:white;" />
    the color:white can be changed to any color you want to have the text show as using hex colors (#ffffff for example).

Maybe you are looking for

  • LCD fading to black

    Hi all, My first post here wanted to ask if anyone has had the same issue I have a new Macbook Pro less than 1 month old it was fine for the first 3 weeks now I am noticing that to the left of my screen it is darker than my right? it's very strange s

  • No entry in Ledger LoV while running Import Journal from Purchasing

    Hi, I am trying to run Import Journals in a GL responsibility: GL Superuser > > Journal > Import > Run. The Source is Purchasing. However when I try to select the Ledger name from the LoV, there are no values. Whats the solution to this? One of my co

  • Dynamic re-scoping of default logic

    Hi all, I'm hoping someone can help on this logic problem -- BPC 5.1 SP5 on SQL 2005. My sales planning application has a dimension SKU with 20,000 members, in a very well structured hierarchy. Each SKU is at level 6, and the profit centers are at le

  • How do I easily resize firefox browser window in Vista?

    I need to resize browser window so I can see a part of my desktop.

  • How to access PL/SQL  Records

    hello all I am in a fix I need to write a connector which inputs data to an oracle 10g database. This has to be done using a pl/sql procedure. Actually there is a Stored procedure which takes record type as input variable . So i need to some how crea