Getting the default font - possible? (default fonts problem in InDesign Server CS5)

Is there a way to decide whether a font is used as "default font" for a document?
Or a simple way to see whether a font is used at all?
The actual problem is that InDesign server (CS5 ver. 7.0.3.533) returns the "default font" along with all other used fonts, when looping through the document.fonts collection. This becomes a problem when the default font is never used in the document, and is also not present. Then the (name of) the default font may also become meddled by a style that does not even exist for that very font.
This is indicated as a problem in our application... as a missing font, just as the call to InDesign server reports back. But the font (with that style) doesn't even exist.
Running the same script on an desktop InDesign CS5 (ver 7.0.4) the unused default font of the same document is not returned at all.
Thanks,
Andreas

To get the default font, just check:
app.activeDocument.textDefaults.appliedFont
Obviously this didn't solve the problem, since InDesign server has made up a font name that is reported as missing... and it's not equal to the default font. So there is some lack of logic in my previous description.

Similar Messages

  • Problem with InDesign Server CS5

    Hi all,
    when i run from prompt (of Windows Server 2008) the command "InDesign Server.com -port 18383" the system respond "Adobe InDesign Server is not properly licensed and will now quit", until some days ago the InDesign Server work perfecly. What i do for that issue ? I try to run cthe command "InDesignServer.com -serilanumber xxxxxx" and the command "InDesignServer.exe -serilanumber xxxxxxx" but doesn't work (the system says me the same think "Adobe InDesign Server is not properly licensed etc etc"). What can i do ?
    Thank you in advance
    Luca

    If you are using CS6, you need to link the installation to an Adobe ID. The simplest way to do that is input the Adobe ID while you install, but you can use the tools (I forget off hand what they are called) to do that afterwards.

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • How to get the default selection color from JTable

    Hi, there,
    I have a question for how to get the default selection color from JTable. I am currently implementing the customized table cell renderer, but I do want to set the selection color in the table exactly the same of default table cell renderer. The JTable.getSelectionBackgroup() did not works for me, it returned dark blue which made the text in the table unreadable. Anyone know how to get the window's default selection color?
    Thanks,
    -Jenny

    The windows default selection color is dark blue. Try selecting any text on this page. The difference is that the text gets changed to a white font so you can actually see the text.
    If you don't like the default colors that Java uses then use the UIManager to change the defaults. The following program shows all the properties controlled by the UIManager:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java
    Any of the properties can be changed for the entire application by using:
    UIManager.put( "propertyName", value );

  • How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I get the default value of a particular preference in FireFox?.
    I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.
    I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.
    Any help towards acheiving this programtically is greatly appreciated.
    If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Dear Friend,
    Here when you have the callableSattement as ?=proc(?), the first ? is an output parameter. So you should register it as out parameter using registeroutparameter.
    Then you can get the value from the outparameter using callablestatement.getXXX().
    Try that way.
    For free tral versions of JDBC Drivers go to www.Atinav.com

  • Trouble getting the default  user directory under Windows XP

    I m trying to get the default user directory under windows XP SP3.
    To do so, I'm using
    System.getProperty("user.home");
    I was expecting to get a path like "C:\Documents and Settings\user", nstead of that I get "C:\Documents and Settings\user\Destop".
    I checked the %USERPROFILE% and %HOMEPATH% window's environment variables and both of them are correctly set ( set to "C:\Documents and Settings\user").
    Is there any way to get the right path other than using : System.setProperty("user.home", "C:\\Documents and Settings\\user"); ?

    Thanks WalterLaan,
    The System.getenv("USERPROFILE") method will, at least, fix the problem under win XP.
    I guess i'll have to write a more refined method to be able to deploy my application under differents OSes.
    Regards.

  • How can I Get the default series of my UDO Document  ?

    Hi all
    I have create a new UDO (Type=Document,  ManageSeries = Yes) 
    Is there a way to get the default series of my UDO ?
    NB: I have tried the following code sample (SDK help) but it didn't work:
    Example
    [Visual Basic] The following is a VB.NET sample that retrieves the default series of a specified document type.
    Dim oCmpSrv As SAPbobsCOM.CompanyService
    Dim oSeriesService As SAPbobsCOM.SeriesService
    Dim oSeries As Series
    Dim oDocumentTypeParams As DocumentTypeParams
    'get company service
    oCmpSrv = oCompany.GetCompanyService
    'get series service
    oSeriesService = oCmpSrv.GetBusinessService(ServiceTypes.SeriesService)
    'get new series
    oSeries = oSeriesService.GetDataInterface(SeriesServiceDataInterfaces.ssdiSeries)
    'get DocumentTypeParams for filling the document type
    oDocumentTypeParams = oSeriesService.GetDataInterface(SeriesServiceDataInterfaces.ssdiDocumentTypeParams)
    'set the document type (e.g. A/R Invoice=13)
    oDocumentTypeParams.Document = "MyUDO_Code"
    'get the default series of the SaleOrder documentset the document type
    oSeries = oSeriesService.GetDefaultSeries(oDocumentTypeParams)
    'print the default series name
    Debug.WriteLine(oSeries.Name)
    'print the first number of the series
    Debug.WriteLine(oSeries.InitialNumber)
    Regards

    Hi all
    My problem is resolved
    I have find the field "DfltSeries" On the table "ONNM"
    Thanks for all

  • Getting the default fileRealm to take precedence?

    I've got a custom realm which is doing a JNDI lookup as part of
    the getUser() function call, leading to infinitely looping recursive
    calls to getUser (since weblogic is checking my custom realm first).
    Is there any way to get the default file realm to take precedence?

    no solution. What do you mean, have "guest" always return true?
    I'm toying with the idea of trying to change the current user
    to be 'guest' or 'system' whenever a JNDI lookup is being done
    so that it will fallback to the file realm and always work, is
    that what you mean? (ie. my realm would be hardcoded to return
    null for a getUser with 'system' or 'guest', thus forcing the file
    realm to take over)
    I don't know how to change the current user for the context of
    that lookup of the DataSource and the following getConnection...
    my attempts at creating an initial context with a different user
    are failing, so if you've got something working that sets the current
    user to guest, I'd love to see it.
    -Don
    "Chris Danek" <[email protected]> wrote:
    >
    Good reading definitely, but it hasn't seemed to help
    me. Have you
    found a solution to your problem? I'm almost to the point
    of just
    letting "guest" always return true for that particular
    function....
    cd
    "Don Dwoske" <[email protected]> wrote:
    it seems we are having the same problem. look at the
    discussion
    tom and I are having.
    If you figure out a nice solution, let me know what you
    did.
    Does your code always go into an infinite recursion?
    Mine does
    not, which is confusing the hell out of me, it seemsto
    happen
    at random.
    -Don
    "Chris Danek" <[email protected]> wrote:
    I've got a custom realm which is doing a JNDI lookupas
    part of
    the getUser() function call, leading to infinitely looping
    recursive
    calls to getUser (since weblogic is checking my custom
    realm first).
    Is there any way to get the default file realm to take
    precedence?

  • I have Microsoft Office X on my Imac with OS 10.6, I cannot get the Ctriilic font in office to work in word or excell. Where do I get the cyrillic font to work in word/excel

    I have Microsoft Office X on my Imac with OS 10.6, I cannot get the Ctriilic font in office to work in word or excell. Where do I get the cyrillic font to work in word/excel

    "Could you explain where you think you have to pay something?"
    I signed up for the site and posted a question their response was that they had an answer and they required credit card imformation.
    "If your problem is to read existing Excel files, then I am very surprised that OpenOffice would not open them.  If you could send me one or provide a url I could see what the problem is (tom at bluesky dot org)."
    I can down load the files just fine and they open. the numbers in the documents will display but text will not what I get is this : "__________" where there should be text.
    Try this site and download the the Doc (rar). it will open on my computer as an excel file but there will be no text just "__________" Open office will not open this file, but excel will.
    http://militera.lib.ru/h/sovaviation/index.html

  • How do I get the default Photostream on my MacBook Pro to match the Photostream on my iPhone and iPad?

    Essentially, I am having issues getting photos that I save on my iPhone or iPad to automatically appear on my MacBook's iPhoto app (and vice versa). The iPad and iPhone automatically share all photos between each other. I have iCloud set up and all of the photo sharing options selected on all devices, so that's not the issue. I used a bit of a workaround and created and shared a custom stream, which ultimately works. However, it involves a lot of moving photos around on all three devices, so I'd like to get the Photostream service working the way it's intended by getting the default Photostream connected to my iCloud account automatically syncing among all three devices.
    Thanks.

    Photos are kept in the My Photo Stream for 30 days or until more than 1000 have been added.  The photos will remain in the MPS for longer than 30 days if the 1000 limit is not reached.
    However, depending on when a device joined the iCloud feature and started receiving the MPS it will not see any that were added more than 30 days from the date of joining.  So if your MBP signed into iCloud and the MPS feature later than the other 2 devices it will not see photos that they might.  Also if you've turned off My Photo Stream on the MPB and then added it back it will only see the last 30 days worth.

  • How can I get the missing font in document

    How can I get the missing font in document

    PSE uses the fonts on your computer, so if you install Rockwell there, PSE should pick it up.

  • Unable to get the same font in swf file

    Hi,
    I've created some swf files in which text was written using one particular font. When I run these swf files in other computers which don't have this font, The text gets displayed in different font.
    How to get the same font in other computers also without installing the font.
    I tried embedding font in fla file. But I commit mistake at somewhere. Could anyone help me to figure it out ?
    Thanks !

    Hi,
    Thanks for your assistance.
    I apologize for not explaining it properly. As you had suggested I just created one new file in which I kept only one text field. No actionscript or anything. The text will be displayed on the stage for 2 secs.
    As it is static I don't need to embed the text. So I didn't. Checked the swf file in different computers but no desired display. I then embedded the font. No desired display again in different computers. I then changed it from static to dynamic text, It is not necessary though. Still no desired display. I then tried with different font. But same thing happens.
    How did I embed the font ?
    Text --> Font Embedding --> Choosing correct font family and style --> Choosing character ranges as uppercase, lowercase, numbers, punctuation. Then clicked on + sign available at right top corner of the left area in which all embedded fonts are displayed. Click OK. Checked in Library and those fonts are available.
    I even didn't do anything with actionscript tab as I don't have any actionscript at all for this file.
    2 fonts I used:
    Font Family: Cooper Std
    Style: Black
    Font Family: DigifaceWide
    Style: Regular
    I don't really know Where I commit mistake. Please advice me.
    Awaiting your precious reply.
    Thanks.

  • How to get the actual font name from a font file?

    Hi
    I have only the font Path I have to get the font name from that path. Any idea how to get the actual font name?
    Thanks,

    I would ask you these questions:
    Why do you need to do this?  What are you ultimately trying to accomplish?
    Are you really asking about the InDesign SDK?
    Do you really need to get the "name" of a font from an arbitrary file?  Or do you want information about a font installed on the system?  If so, what OS?
    Do you need to be able to handle any font format?
    Which font "name" do you mean?
    What language do you want the name in?
    (1) It's not clear what you're trying to accomplish.  A bit more information about your ultimate goal would be helpful.
    (2) This question is not at all specific to the InDesign SDK.  Are you really trying to do something in the context of an InDesign plug-in?  If so, you probably want to look at IID_IFONTFAMILY and the IFontFamily::GetFamilyName function.
    (3) If you are asking more generally, Windows and Mac both have system API calls to get this information, although those tend to deal with installed system fonts, not with arbitrary font files per se.
    Also, you can parse the name table from a True Type or Open Type font without using any system APIs; as True Type and Open Type are well-documented standards.  I would start by reading these:
    The Naming Table
    Font Names Table
    (4) Although there are other standards, such as Type 1 (PostScript) fonts, and True Type Collection files and other formats, especially on Mac.
    (5) Also, when you start down this road, you will quickly realize that your seemingly simple question is actually ambiguous, and that the answer is kind of complicated, because a font can have many names (a family name, a full font name, a style name, a PostScript name, etc.).
    (6) And not only does a font have multiple names, it can have each of those names in multiple languages and encodings.
    Any clarification would make this a better question.

  • Getting the default messaging app back

    i have a nokia e5-00. .bought it a few years back. .a month ago, i installed sms2.0 live app as the msging app. .it's done fine so far nw, bt i ws trying to get the default messaging app back but cant find a way to do so. There is no option to uninstall this app as it has nw become the native app for texting. Any help in this regard would be much appreciated. Thanx in advance.

    Did you try uninstalling by going to settings>application manager>installed apps>select app>select>options and select uninstall? 

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

Maybe you are looking for

  • Photo Galleries In iWeb

    i have a number of photos in iPhoto that i want to upload to my iWeb website. When i drag a whole album over to the gallery it lays all the pictures out on the screen. is there any way to keep them separated in different galleries?

  • MIRO - AUTOMATIC POSTING TO VENDOR

    Hi We are trying to change the posting date of  the automatic vendor invoice creation, during an intercompany billing process. we call transction vf04 and insert delivery number, then we press in save button. When we press save, the customer invoice

  • T61 power adaptors do nothing - won't run computer & won't charge battery

    My T61 suddenly won't run on the power adaptor, or charge the battery.   I have several OEM power adaptors and none of them do anything plugged into this T61.  The computer runs fine on a battery charged in another T61.

  • Can I have iTunes find my missing info for my songs and albums that are already on my computer?

    I have missing info on a lot of my songs and the albums I had put them on by CD awhile ago without internet and I cant redo them because I dont have the CDs anymore. Can I have iTunes find the info for them?

  • Unable to view page link

    I put have a page link on a public page. This link is to a page that is not displayed to the public so that if a person clicks on the link he/she will be redirected to login/new account registration. The problem is if I am not logged in I don't see t