I promise you that the police _is_ it. :(

OK, so I'm having problems dynamically fonts management process in an automated build.

To be clear;

(a) I have a police

(b) I really, really, really _know_ I have this font

(c) I checked once again, police _is_ it

After reviewing this, I get the police using app.fonts.itemByName (fontName) and then try to _use_ the police think I _know_ I.

It works for about 650 to 710 fonts.

For others... I just saw "the font style requested is not available."

_WHY_?

_WHY_?

Please, please, please...

Anyone?

Thank you

G

found.fontFamily: Baskerville
found.fontStyleName: regular
found.fontStyleNameNative: regular
found.fontType: 1718898516 (OPENTYPE_TT)
found.fullName: Baskerville
found.fullNameNative: Baskerville
found.index:-1
found.isValid: true
found. Location: C:\Program Files\Adobe\Adobe InDesign 2014\Fonts\Baskerville.ttf CC
found. Name: BaskervilleRegular
found. Ordering:
found.parent: [object Application]
found.platformName: Baskerville
found.postscriptName: Baskerville
found. Properties: [object Object]
found. Registry:
found.restrictedPrinting: false
found. Status: 1718831470 (ok)
found.version: Version 1.00
found.writingScript: 0

ERROR: {"Filename": "printFinal.jsx", "lineNumber": "368", "templateId": 'TEMPLATE', 'message': "font style requested is not available.", "inputArguments": {}}

[code]

var found = app.fonts.itemByName (cleanedFontFamily);

function writeFontType (val) {}

{Switch (Val)}

case FontTypes.ATC: return "ATC"

case FontTypes.BITMAP: return 'BITMAP ';

case FontTypes.CID: return 'CID ';

case FontTypes.OPENTYPE_CFF: return "OPENTYPE_CFF";

case FontTypes.OPENTYPE_CID: return "OPENTYPE_CID";

case FontTypes.OPENTYPE_TT: return "OPENTYPE_TT";

case FontTypes.TRUETYPE: return 'TRUETYPE ';

case FontTypes.TYPE_1: return of the 'TYPE_1 ';

case FontTypes.UNKNOWN: return 'UNKNOWN '.

}

return 'unknown '.

}

This.Debug ("\tNATIVE:\n\t" +]

"found.fontFamily:" + found.fontFamily, "

"found.fontStyleName:" + found.fontStyleName, "

"found.fontStyleNameNative:" + found.fontStyleNameNative, "

"found.fontType:" + found.fontType + "(" + ((found.fontType) writeFontType) + ")", "

"found.fullName:" + found.fullName, "

"found.fullNameNative:" + found.fullNameNative, "

"found.index:" + found.index, "

"found.isValid:" + found.isValid, "

"found.location:" + found.location, "

"found.name:" + found.name, "

"found.ordering:" + found.ordering, "

"found.parent:" + found.parent, "

"found.platformName:" + found.platformName, "

"found.postscriptName:" + found.postscriptName, "

"found.properties:" + found.properties, "

"found.registry:" + found.registry, "

"found.restrictedPrinting:" + found.restrictedPrinting, "

' found.status: '+ found.status +' ('+ (found.status is FontStatus.INSTALLED?'. "(OK_»_:_«_enquêter_») +"). "

"found.version:" + found.version, "

' found.writingScript: ' + found.writingScript

(] .join ("\n\tclick"));

style.appliedFont = found;

[/ code]

OK, so had some help from Vlad / vamitul offline and the list of fonts can be cleaned with a save to IDML, then reopen and crushing the INDD.

All good, thanks Marc, thanks Vlad!

G

Tags: InDesign

Similar Questions

  • I updated iOs 9.3 and I can't activate my Iphone. A message informs you that the server is not available

    I updated iOs 9.3 and I can't activate my Iphone. A message informs you that the server is not available

    Have same problem here too.

    I have iPhone 5 and update iOS 9.3 and I can't activate my Iphone. A message informs you that the server is not available

  • I can't add a new font, he said that the police is in use, please try again when windows has finished using the font

    I am installing a true type font but keeps popping up with the error: fonts to use and can not be installed, please wait until windows has finished using the font. I have closed all running programs and tried to restart my computer, but it always appears with the same message.

    Hi dillydally01,

    1. did you of recent changes on the computer?

    2. How do you install the fonts on the computer?

    I suggest that you refer the below Microsoft article and try again mentioned step to install fonts in Windows and check if it helps.

    How to install or remove a font in Windows

    http://support.Microsoft.com/kb/314960

  • Network cable unplugged, but I promise you that's not!

    I connect my computer to my Linksys router (this computer will not connect wirelessly).  Unfortunately, my computer thinks that the network cable is unplugged.  Let me give a few details before you continue!

    Router: Linksys WRT54GL v1.1, with the firmware update

    Ethernet card: Realtek PCIe GBE Family Controller (with up-to-date drivers)

    Computer OS: Windows 7 64-bit

    And now for the fun part.  First of all, I thought it was a bad ethernet cable, so I tried another and another still.  The cable doesn't seem to be the problem.

    Secondly, I thought it might well be my ethernet card.  I plugged the ethernet cable from my modem cable directly on my ethernet card and was instantly rewarded with a connection.  With this, I noticed that my ethernet card is not the problem.

    Third, I thought, well, it must be the router.  I tried all four ports on the back of the router to see if it was bad.  None of them worked.  The router shows not all lights for ports 1, 2, 3 or 4, regardless of where I plug. Progress!  Of course, it is the router, no?  In order to ensure, I ran a cable ethernet to the router to a laptop and has been awarded once more with a connection.  If the router is not the problem.

    After doing some reading here and abroad, I have reduced my 'speed and Duplex"to 10 Mbps half Duplex.  Who has not solved the problem.

    Any help would be immensely appreciated, because I'm quite frustrated.  Please let me know if I can provide more information for you.  Thank you in advance for your help!

    My friend is a very nice person and so is his first wife. I get along with two of them very well, but they have been quarreling all the time while they were married. They are now divorced and married to new partners and the two relations are developing.

    What this has to do with your problem? Well, your systematic troubleshooting effort eliminated all the simple causes of failure but it has not examined the issues of compatibility. I suspect that NETWORK card in your PC is just out of tolerance or is your router. Other devices can be a little more tolerant (as new friends partners), but together they won't work. How to test this? Here are a few options:

    (a) borrow a switch/router of different brand of a friend.

    (b) connect the two PCs on a switch that is not the same brand as your router, and then plug the switch on the router.

    Please post the result here!

  • I didn't like the default theme that the police is fuzz if I run in safe mode, that they look much better - how to fix this permenantly

    Firefox 3 has been great and I liked the new features of firefox 4, but the default theme is bad or not good for my PC is Windows 7 Prof I added new themes and changed the graphics card no fixed and when I tried safe mode, it worked like charm, it's really nice so I would like to know how to make the change permanent.

    This is probably due to hardware acceleration. Safe mode disables hardware acceleration and hardware acceleration changes the appearance of fonts.

    To disable hardware acceleration, open the Options dialog box, go to the advanced Panel, then select the general tab uncheck the setting "use hardware acceleration when available.

  • The police recovered my IPAD the apple of the thief ID is necessary to access and put in place after clearing there how I could put up my iPad and erase the thieves apple ID

    I am on the page 'activate IPAD' in "set up your iPAD" after having deleted all the data with the restore option after that the police recovered my stolen IPAD the thief apparently put up my ipad with its own appleID and I am not deprived for the password how to regain access to my property and then I discover that , and what is the apple ID or belongs as a secondary concern?

    The police can act as your intermediary?  They are able to contact the thief on your behalf?  I would ask them unless you already know the answer.  Allow the police to try to unlock the iPad for you.

  • Cannot remove fonts, error: the police is in use.

    Original title: fonts

    I can't remove all the fonts on my computer because it is said that the police is in use.

    Hello

    1. from where you want to delete the fonts?
    2. what font you are trying to delete?
     
    The fonts in a file; I recommend trying to remove fonts in safe mode.
    Here's how
    a. restart your computer.
    b. when the computer starts, you will see your computer hardware are listed. When you see this information tap the F8 on your keyboard key repeatedly until you are presented with the screen Windows 7 Advanced Startup Options.
    c. using the arrow keys, select the desired option of Mode without failure.
    d. press the Enter key on your keyboard to start in safe mode of Windows 7.
    e. when Windows starts, use check and Internet explore if the problem persists.
    f. try to clear the police now.
     
    For more information, see the articles below.
    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode
     

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The police when export (preview) or editing error.

    I just bought a new iMac, and since then, I have problems with the fonts. In the screenshot I attached, it is said that there is a police problem. On this page, for example, on the menu, I regularly use part on the title (in white), I use Helvetica and on the text, I use Acumin Pro. All these fonts (except Helvetica) are Web. But Helvetica is a standard font, so where is the problem.

    On the first screen, that's what I have (everything is fine) in Design view. When I try to enter the review mode, you can see in the screenshot of second and third I. You will notice that the police in the menu bar has changed, and you will see the error message.

    What is the problem? Y at - it a cache somewhere that I can empty? Thank you.Screen Shot 2016-01-26 at 14.54.28.jpg

    Screen Shot 2016-01-26 at 14.55.03.jpg

    Screen Shot 2016-01-26 at 15.00.53.jpg

    Have you tried perono passer TypeKit? With your subscription CC, it seems to me that you can use Carriage.

  • Issue of license on the version of the police - Antique Olive

    Hello

    One of our business partners use a black 'Antique Olive' font in his file.  He told me that the police is Adobe.  I can only find 'Antique Olive Std Black' in the fonts Adobe store.  I bought and installed on our machine.  However, when I open the file, "the police is missing' WARNING still appears.

    According to compare policies, it seems the 2 fonts is the same, but different version.  "Ancient Olive Black" seems to be the old font version.  As I purchase the license 'Antique Olive Std Black', can I install and use fonts of the 'Antique Olive black' version without licensing issue?

    Untitled.jpg

    Kind regards

    Stanley

    Sounds like the paper uses the older format PostScript Type 1, the police, which can be found here Adobe - fonts: black Antique Olive®

    To allow this font you'd have to buy the family pass Adobe - fonts: Antique Olive 1 and decide if you need the Windows or Mac version.

    Std version you purchased is the new police OpenType format. Adobe - fonts: Antique Olive® Std Black

    My suggestion is to change the font used by the document for the Std version. This may cause some reformatting of the text, but this is by far the more long term solution. The PostScript Type 1 font format is very old and has been deprecated by the last major operating systems for the OpenType format.

  • Camera does not work after you reduce the screen brightness

    Hello

    I have an application that uses the camera in QML. It works fine, but if the screen fades while my application is open the camera no longer until I restart the application.

    Here is the page of qml any camera:

    import bb.cascades 1.0
    import bb.cascades.multimedia 1.0
    
    /**
     * Most of this code was copied from:
     * https://developer.blackberry.com/cascades/documentation/design/camera/taking_a_photo_with_the_front_...
     */
    
    Page {
        property string pictureLocation: ""
        function closeCamera() {
            createReportNavigationPane.cameraClosed(pictureLocation)
            pictureLocation = "";
            saveID.enabled = false;
            sheetCamera.close();
        }
        titleBar: TitleBar {
            acceptAction: ActionItem {
                title: qsTr("Save")
                id: saveID
                enabled: false
                //title: "Save"
                onTriggered: {
                    closeCamera();
                }
            }
    
            // The 'Cancel' action
            dismissAction: ActionItem {
                title: "Cancel"
                onTriggered: {
                    pictureLocation = "";
                    closeCamera();
                }
            }
        }
        onCreationCompleted: {
            // Check to see if any cameras are currently accessible.
            if (camera.allCamerasAccessible) {
                // Open the rear camera.
                camera.open(CameraUnit.Rear);
                camera.isOpen = true
            }
        }
        Container {
            layout: DockLayout {
            }
    
            // The Camera object.
            Camera {
                id: camera
                preferredWidth: 768
                preferredHeight: 1280
                objectName: "camera"
                property bool photoBeingTaken
                property bool isOpen: false
                onTouch: {
                    if (event.isDown()) {
                        if (photoBeingTaken == false) {
    
                            // Take a photo, and automatically
                            // save it to the file system.
                            camera.capturePhoto();
                        }
                    }
                }
    
                // The following are examples of slots that can
                // be used with the Camera object to handle
                // the various signals that are emitted.
                onCameraOpened: {
                    // Once the camera is open, start the viewfinder.
                    camera.startViewfinder();
                }
                onCameraOpenFailed: {
                    console.debug("Camera cannot open");
                }
                onViewfinderStarted: {
                    console.debug("Viewfinder has been started");
                    photoBeingTaken = false;
                }
                onViewfinderStartFailed: {
                    console.debug("Viewfinder could not be started");
                }
                onPhotoCaptureFailed: {
                    console.debug("Photo could not be taken");
                    photoBeingTaken = false;
                }
                onPhotoSaveFailed: {
                    console.debug("Photo could not be saved");
                    photoBeingTaken = false;
                }
                onPhotoSaved: {
                    saveID.enabled = true;
                    photoBeingTaken = true;
                    console.debug("Photo has been successfully saved");
                    photoBeingTaken = false;
                    console.log(fileName);
                    pictureLocation = fileName;
                    var imageName = pictureLocation.substring(pictureLocation.lastIndexOf("/") + 1);
                    var imagePath = "/accounts/1000/shared/camera/" + imageName;
                    cameraPreview.imageSource = app.getCameraPreview(imageName, imagePath);
                }
            }
            Container {
                layout: StackLayout {
                }
                leftPadding: 10.0
                topPadding: 10.0
                Container {
                    preferredHeight: 200
                    preferredWidth: 200
                    horizontalAlignment: HorizontalAlignment.Left
                    Container {
                        verticalAlignment: VerticalAlignment.Center
                        ImageView {
                            id: cameraPreview
                            verticalAlignment: VerticalAlignment.Fill
                            horizontalAlignment: HorizontalAlignment.Fill
                            scalingMethod: ScalingMethod.Fill
                        }
                    }
                }
            }
        }
    }
    

    Thank you

    Gerry

    so, there is a signal of cameraResourceReleased which you can listen to that will tell you that the camera has been arrested.

    After that, you can restart the viewfinder after your application is in the foreground.

    We have a corner case that we are still working on what centers around the case when the screen starts to close (causing the camera to stop), but the user he wakes up before the browser tells your application in the background.  In this case, you may not receive a leading event.  You can probably work around this case by launching a timer and check, after a second or two, if the application has been deleted original or not... If it is still in the foreground, then you could try restart the viewfinder

    See you soon,.

    Sean

  • Why the update muse my pictures not on the server that the client has entered?

    Sorry my English verry bad. When the customer has enterd new photos on the server, muse adobe will not update this new photos.

    I use the latest Version of Adobe Muse. Please can you give me a solution for this problem?

    Philipp,

    Save the file to Muse, Muse and re - open the same file, click on the file-> to synchronize with the Web version:

    This should show you that the site updated.

    Kind regards

    Akshay

  • Old school with CS2.  Have not used for a long time and I am unable to use the program as it says my serial number is not valid. Customer service tells me that the server for CS2 was arrested.  Then they sent me here to help.  Does anyone have advice?

    I don't have any idea what I'm doing with this.  Here is my discussion with the Customer Service:

    NGO: Hello! Welcome to the Adobe Customer Service.

    NGO: Hi Mary.

    NGO: I understand you get invalid serial number, I'm good?

    Mary Vance: Hi

    Mary Vance: Yes

    NGO : Please provide me with the serial number, s Mary.

    Mary Vance: I gave my serial number here

    NGO : Thanks for the serial number.

    NGO : Please let me 2-3 minutes to check your serial number.

    Mary Vance: no problem

    NGO : Thank you.

    NGO : Thank you for being online.

    NGO : I would like to inform you that the server for CS2 products have been closed by adobe since then you are not able to install the product.

    NGO : However, I'll give you the link to download the CS2 apps. Please visit the following link.

    Mary Vance: This will allow me to reinstall Photoshop?

    NGO : Yes, s Mary.

    Mary Vance: ok... What is that link?

    NGO: Please click here to download.

    Mary Vance: thank you... try now

    NGO: You're welcome.

    NGO: I will also give you the link for more information regarding the installation of CS2 products.

    Mary Vance: the download has nothing about the installation

    NGO : Please click for the information.

    NGO : I'm sorry for the bad link.

    NGO : Please click here to download.

    NGO : The link 3 is for downloading Photoshop CS2.

    NGO : Were you able to view the download link, Mary?

    Mary Vance: this file in this download is supposed to help me?

    Mary Vance: the first and the 3rd link were the same

    Mary Vance: When you try to load from my software, I get the message saying that my serial number is not valid. All I need is a serial number that works. Is that going to be possible?

    NGO: Mary, Adobe has disabled the activation server for CS2, Acrobat 7 including applications and 3 the hearing, due to a technical problem.

    NGO: So you will need to download the software from the link above.

    NGO: I know in what OS you are trying to install the software?

    Mary Vance: the link sent me to a CS2 aid package

    Mary Vance: Windows 7

    NGO : I'm sorry, you will not be able to install CS2 on Windows 7 because it does not support the CS2 version.

    Mary Vance: I got on here for a few years... why all of a sudden it would not work? Illustrator is great.

    NGO : Okay.

    NGO : You can try to download the software.

    Mary Vance: was the original link that you sent me guess for me to download Photoshop?

    Mary Vance: , I tried and got the message that the serial number is not valid. Is it possible to work around this problem or do I throw it?

    NGO : I know if you have uninstalled the product.

    NGO : ?

    Mary Vance: I uninstall Photoshop only. Then I tried to reinstall Photoshop only and received the message on the serial number.

    NGO: I check and see that there seems to be a technical problem, I ask that you please send your query to the forums so that you will be able to get resolution of our expertise and I'll give you the link to visit the forums.

    NGO: Please click here to visit the forums of.

    Mary Vance: I guess I'll try this.

    NGO: Yes, please.

    NGO: Is there anything else I can help?

    Mary Vance: I do not see where you helped me with that yet, so I guess not!

    NGO : I'm sorry for the inconvenience.

    NGO : Thanks to contact Adobe.  We are available 7 days a week, 24 hours a day. Bye!


    Any help would be appreciated.

    What exactly did you download?  This should be the right file: PhSp_CS2_English.exe

    Disc 1 is the creative suite not the stand-alone photoshop

  • When you apply for jobs, the police don't rest not the same thing, how can you correct that if the application is done correctly?

    I'm filling out a job application.  The police are everywhere, it changes in different areas and I don't know how to fix it.  How is that possible?

    Press Ctrl + E. If it allows you to change the font settings, do so. If this isn't the case, then there is nothing you can do about it with the player. It's the fault of the authors of the file. You can report it to their...

  • How can I fix the problem that when you reply or forward an email, the police in the e-mail becomes very small?

    All of a sudden, when I reply to or forward an email, the police in the e-mail becomes VERY SMALL! How can I get that back to regular size?

    I found an add-on, which worked. in response to police of someone else's problems.

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

    Just follow the directions.

  • Do you know that I am the police?

    Hi all

    I work with a file that came to me with the type described, and that the client wants type me a paragraph in the same font as the PNG, I joined.  I recently got a new HD and have more 6 000 fonts which I have not yet reinstalled... this font is very familiar to me, but I paint a white.  Assumptions?  Your help is appreciated!

    Thank you!

    Hello

    It looks like regular Alexa from Linotype.

Maybe you are looking for

  • I can't find the album recently deleted pictures on Mac

    I fully understand on recently deleted photo album, but recently he has simply disappeared. I can't find more recently deleted in my photo album. Help, please.

  • How to change the search engine when you use the functionality of Firefox Home button Search?

    In Firefox itself, I have configured duckduckgo as my default search provider. But when I use the host Firefox search button it is always defined on google and I don't see any possibility to change that? I love the Firefox Home button Search (or what

  • Save as pdf

    When I saved a web page in pdf format, I found that the part of the page had not been saved. turning my samsung galaxy tthrough 90 dsgrees made no difference. also...I use a bluetooth keyboard, and I can't lower the keyboard with the apropriate key a

  • Card Pnovatel WLan PCMCIA U530 suddenly stopped working

    Suddenly, my pcmcia card from novatel wireless u530 doesn't work. My laptop began to recognize it as a map of MTD-0002 (?). I uninstalled and reinstalled several times, he pilots looking for latest drivers. The card is a Wireless Merlin U530 Novatel.

  • Motorola Photon / texting on phone

    Hello Y at - it a setting or something I'm missing? I can't text while I'm on a phone call. I was able to do it with all my other phones.