Change the font size of a table with javascript

Hello!

I am new to developing in javascript, as well as for indesign. I have to make some changes to an existing script. I get a user dialogue in which the imported table must be the size of the font. But how can I change the size of the font in a table?

Please answer as soon as possible. Thank you very much in advance.

moketas

Hello

do you like this (right)?

To apply the font to each cell, you must Access the TextFrame-online Table-online cell-online any TextObject object

var doc = app.documents[0];

// two textframes, they have a table (2x2)
var tf_one = doc.textFrames[0];
var tf_two = doc.textFrames[1];

//applied to story
tf_one.parentStory.appliedFont = "Myriad Pro\tLight";
tf_one.parentStory.pointSize = 24;
//not effective against table text

//applied to text-object of each cells of table
tf_two.parentStory.tables[0].cells.everyItem().texts[0].appliedFont = "Myriad Pro\tBold";
tf_two.parentStory.tables[0].cells.everyItem().texts[0].pointSize = 24;

Thank you

mg.

Tags: InDesign

Similar Questions

  • You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    You can change the font size using the form in the preview (not with the text box). Having also arrow drawing trouble in preview.

    What problems are you having with the arrow? You go to Tools-> annotate-> arrow and an arrow appears. Then you can drag around the head and tail to make it to the desired location.

  • Set the font size as JavaFX table column name

    I tried to set the font of a spirit of name of column in table size, copy the following code:

    table.setStyle ("police - fx - size: 9 ;"); ")

    But this code changes the font size of the rows in the table.

    Use an external style sheet with the rule

    .table-view .column-header-background .label {
     -fx-font-size: 9pt;
    }
    
  • How can I customize the font size for Pivot Table Section 11 g?

    Hi all

    I'm new to CSS customization, and I followed the suggestions to use tools like Firebug to look at the CSS styles applied to a particular item.

    11 g, I have a report that uses rotating sections of the table to display the numbers associated with the Department in each Department and the sections. Using Firebug, I see that the titles of the Department are on police-size: 9px; by default. The HTML is:

    < class = "PTSC OOLT" td style = "" are-size: 9px; ">"

    I would like to change the font size default to the values of the Section of the Pivot Table so that it displays 11px-size of font instead of 9px for all reports.

    Digging around, I don't see a way to do unless I have use custom styles custom.css and reference in each of my pivot views. Does anyone else have a suggestion how how I can change the default font size without having to create a custom.css entry? We have many existing reports that have been migrated over 10 g that I prefer not to go back and must add a reference to each view simple pivot.

    Thank you.

    Hello

    Please see:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/bi/bi1113/customizing_obiee11g/customizing_obiee11g.htm
    and search for "Deployment of a Style Custom"

    Concerning
    Young

  • Can I change the font size of the subjects email in my Inbox

    I'm changing the font size in the Inbox for a friend with a visual impairment. I am not able to find an option to do it though. Is this possible?

    I think that you need an add-on.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/

    http://Xenos-email-notes.simplesite.com/416814616

  • I can't go in the settings of fonts. How to change the font size?

    I had downloaded the latest version of Firefox and I finished it sync for my Android phone. I went into a kind of dialog box settings and accidentally changed my fonts and text settings and now I can't read any of my Gmail which is in my account on my desktop - it's too small. I'm trying to figure out how I can enter in the content settings (I feel that I do once I have enter the menu 'options' on the content settings page, but I don't know how to bring up the menu of the content/page settings). I use my desktop PC for work and I can't use it with the font settings and how they are now. I also read where the issues are taken, but no one knows how to find the answers to the questions people are asking. How do we get the answers that people give us on the issue, we asked?

    I hope you can help me as soon as POSSIBLE, I can change what I as soon as POSSIBLE. I'm working on my pc 24/7 for the work and is not helping me when I can't read the emails and I can't solve the problem.

    Thank you!

    Hi Upset2,

    Sorry to hear that you are having problems with font sizes in Firefox on your desktop.

    Text sizes really small for each Web site you visit, or is it just your emails?
    Text sizes are really small on your desktop and Android or only one?

    There are several things that could cause your text sizes to seem strange, so I'll take you by a couple.

    First of all, your email page could have a zoom. On your PC, could you please try open Gmail and then by clicking on the icon at the top right of your screen that looks like three lines?

    This will bring up a new menu and near the top of the menu are three buttons: a minus (-), a percentage (that is to say, he could say 70%) and a plus (+). Please click button percentage - this should Gmail zoom to 100%.

    If that doesn't fix it, let's try using the method on your printout. To access the content settings screen, click the button in the top right that looks like three lines. Click on Preferences. A new window will open. Click on the 'Content' button and follow the instructions that you change the font size.

    There is another version of the instructions I just gave you, with screenshots, here: font size and zoom - increase the size of web pages

    Mozilla Support issues are all handled by volunteers, and at peak hours, there may be a delay. Thanks for your patience!

    I hope this helps.

    Jayelbe

  • How to change the font size and color in the toolbar Firefox 10?

    I was switched to Mozilla Firefox 10.0 by a representative of Dell. I had been using IE8. I have the Windows 7-64 bit operating system. I can't read my toolbar on Mozilla it is so small and the police is black with gray background! Is this not a great combination. Is anyway to change the font size of toolbar and from the colour? I downloaded the module Amazon on WOW! It's clear as a Bell, but Mozilla is absolutely horrible. If I can't get the editing toolbar I need to know another browser to use cause after only 5 hours trying to customize and use Firefox 10.0 I'm all done. I can't get any telephone communication or chatline support. I was in the knowledge base up until I can recite! And Kaspersky is not compatible. More of a nightmare what I need.

    Theme font & size changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • Change the font size on HP5520

    Please tell me how to increase the size of the font on my Hp5520 A-I-O printer without affecting my office.

    My pages print in very small print.

    Thank you

    Mima,.

    Examples:

    ===========================================================================

    Firefox > file > print preview > >

    Two Options > >

    Scale

    OR

    Page Set Up > Format & Options - includes scale and shrink to fit Page Width option

    ============================================================================

    Internet Explorer > file > print preview >

    Shrink to Fit > > provides the overall percentage of the print size - could be preset to "fit to page".

    AND / OR

    Internet Explorer > file > Page Setup >

    Clear the check BOX Select the shrink to Fit > > Presets of the 100% print page

    ============================================================================

    Chrome > > this browser seems devoid of other browsers use controls

    • You may have difficulty the view before printing - check with other users of Chrome to check
    • You can change the font size used by Chrome, permanently if the problem is constant:
    • Customization bars > settings > advanced > Web content > font size

    =========================================================================

    Most browsers:

    To set a Web page view before printing:

    PC:

    Cntrl + more

    Cntrl - small

    Mac

    * Cmd + more

    Cmd - small

    * Command key

    -----------------------------------------------------------------------------------------------------------

    Reference:

    Manage the print with preview output before printing

    When you see a post that will help you,

    Who inspires you, gives a cool idea,

    Or you learn something new.

    Click the 'Thumbs Up' on this post.

    My answer-click accept as Solution to help others find answers.

  • How to change the font size to print documents?

    Original title:

    Printer prints very small fonts
    How can I change this font?
    It was working fine

    Hello

    Generally, we change the font size in the application with which we try to print.

    1. what application you use to print?

    2. what operating system is installed on the computer?

    You can view the following link to learn more about print options:

    Choose printing options

    http://Windows.Microsoft.com/en-us/Windows7/choosing-print-options

    Let us know if it helps!

  • How to change the font, size, color for long-term

    I like sending an e-mail using color. I got Windows 7 earlier this year. I had XP. At the same time, I changed the font, size and color, and there staed like that.

    However, I tried to change it again and I spent weeks trying. I know that they can be changed for each email, but I want to stay for a while until, months from now, I decided to change again.

    As I did once, it can be done. I just remember what I've done.

    Thank you.

    Hello

    Thanks for posting in the Microsoft Community Forum. Description, I appreciate that you try to change the font, size and color for the e-mails, rest assured that we will do our best to answer this question.

    Answer these questions that would help us to provide the best solution:

    What mail client do you use?

    Provide us with more information about the issue so that we can help you further.

  • change the font size in Windows Live Mail

    Windows 8 and Windows Live Mail, to change the font size in WLM but not as he was w/Win 7. HOW can I increase the font size?

    Because the poster seems to be using the app Mail W8, the thread has been moved to the appropriate forum 

    Hi EdSikora,

    Sounds like you have problems using the mail app on the computer.

    • Are you referring to the Mail app in Windows 8?
    • Or is it specifically Windows Live Mail?

    If you are referring to the mail app on Windows 8, you can proceed as follows.

    1. When you compose a mail, select the text you want to change the font for, or simply right click on the space empty on the mail.
    2. At the bottom of the screen, you will find the app bar with options.
    3. Select or click the font changes.

    You can check this article for more details on the mail app. Do not respond if this isn't what you're looking for or if you have more questions. Thank you.

  • How can I change the font size when printing myprograms? Printing is so small that it is barely readable.

    Look at one is easy, printing is not. Never had this problem with XP. Can't find anything in place to change the font size for printed documents. My e-mail address must also be changed on my Microsoft account. Where do you do that?

    Just solved my email impression of non-selection "Shrink to fit" and using the icon to print which is on the email, not the "gear" in the top right of the page parameter page.  Now I can read without a magnifying glass.

  • Can I change the font size for the mail application?

    For the purposes of mail, I want to change the font size.  In other words, the size of everything on the screen when I'm watching and reading mail (do not as much care of the font size in the mail I made up).  Hereby, I refer to the list of the mails which is located on the left of the screen, where it lists who it is from and the subject and the right of the screen, where the content of the selected mail mail message appears as follows.  In fact, it might just be a type of "zoom" as well, not necessarily affecting the size of font in itself.  Want just everything what I see on the screen, reading, to be bigger. Have looked under 'settings' and 'help' and can't find anything about it in two places.

    My mother is 90 and said: "it's so small, I can hardly read it.  Wow, thought new Windows 8 was supposed to be a new world, easy and user friendly; and yet, here, I am an "expert" was using the PC since the beginning of the Radio Shack, start Windows, etc... but have to post this question here.

    Thanks if you can help with that!

    Some of them depends on the capabilities of your display.  If she has enough pixels to do without causing interference, you can adjust the DPI (dots per inch) of scale and it will expand the size of the text and the items for you.

    To see if you can do it, go to your charm to search and type 'scale '.  Choose the search result it shows and then try the configuration in larger size.

  • How can I change the font size on a document that has already been signed?

    How can I change the font size for my entry on a document that has already been signed? It seems that Adobe will not allow this. Thank you.

    Hi jonathanh19241035 ,

    I would like to inform when, once the document is signed and then after that it does not to exchange with the font size if it's signatures is the digital signature.

    If its use fill & sign and then using the add-on Acrobat the size of the font of the entry can be change.

    Also, this can be done in Acrobat Pro not in the drive.

    Kind regards

    Christian

  • I use Adobe Muse CC browserediting.  How can I change the font size?  How can I delete a photo?

    I use Adobe Muse CC browserediting.

    How can I change the font size.  I copy and paste a paragraph MS lyrics Muse, but any font size, I chose, the paragraph will show that one size after that I stuck in Muse.

    I have tried both right and left clicks on, however no button change was shown on my photos.  How can I delete a photo.

    Thank you

    You can not do with editing in the browser, any changes affecting the structure or appearance of the page. You can replace only the content items.

    Mylenium

Maybe you are looking for

  • 4540 proBook s: Win8 only DVD - new installation language

    HelloI'm not sure if I send this message to the right forum, but here goes...VERY SHORT VERSIONAbout six weeks ago, I bought a 4540 of HP Probook which seems to be a well designed system and which came with pre-installed Win8. Are there instructions

  • Re: What version of BIOS uses Equium A200 - 15l

    Can someone tell me what version of Bios the Satellite A200 - 15l use it please, and it is available at d/l?

  • Editor not found disk image app

    Cannot open files.sparseimage sure, I created a few years ago with OSX... Last opened last year. Suggests the opening with diskimagemounter.app. However, the file does not open and I can not find diskimagemounter.app Who kidnapped ElCapitan, or befor

  • Boolean operation

    Hello Dimensions here is a local variable. Will be true only 1 hour a day but I want to behave like the latch operation Boolean whith button releasing. for this example because it comes in a while loop I want that whenever real measurements become to

  • HELP ASAP! problems with hp pavilion dv2500 display driver

    Product: HP Pavilion dv2500 Entertainment Notebook PC OS: Windows Vista editions Home Premium Hello I had several cases where the computer seems 'lag '. then, after a few flickers on my screen, Windows would give the error: "Display driver stopped re