Setting the text fonts in the CS6

I'm putting the police = "Times New Roman" to a range of text.

But the API consistently fails with error code = "1430996551".

AIErr result = sAIFont-> FindFont ("Times New Roman regular", kAIUnknownFontTechnology, kUnknownAIScript, false, & headingFontKey);

I tried "Times New Roman"

"Times Roman".

"Times-Roman".

"Times New Roman bold"

I have all these fonts installed on my machine windows 7 and you can see them in the menu selection with THE police as well.

What could be the problem?

And how to decode the error code (1430996551)?

Thanks in advance!

Ouch, fonts. I hate the fonts

Well, first of all the error message. Convert to hexadecimal, and you get:

554B 4647

Which consists of 55, 4B, 46 & 47. Catch an ASCII table and you will find that this corresponds to UKFG, I read in the "unknown group". You can probably find UKFG somewhere in the API headers, the most likely AIFont.h (or associated header).

Here's some code that will do this conversion automatically:

Inline void ConvertSPErr (const SPErr error, char buffer)

{

public static const int kErrorByteSize = sizeof (SPErr);

public static const int kCharBitCount = sizeof (char) * 8;

public static const int kBaseMask = 0xff;

mask int = 0;

for (int i = 0; i)< kerrorbytesize;="" i++)="">

mask = kBaseMask< (kcharbitcount="" *="">

int value = error & mask;

value = value > (kCharBitCount * I);

buffer [kErrorByteSize - i - 1] = value (char);

}

buffer [kErrorByteSize] = 0;

}

Then, he probably wants "Times" or something like that. But I think you'd have better luck with:

sAIFont-> FindFont ("keyword", kAIAnyFontTechnology, kRomanAIScript, true, & headingFontKey);

In addition, you could just try large print of each font known for Illustrator family and store than somewhere. Then when you need something specific, you can search manually

Tags: Illustrator

Similar Questions

  • Set the CS6 PS 'Open' dialog window size and location

    I just upgraded to OS X Mavericks for OS X El Capitan.  Until the upgrade, I've always been able to set the size of the 'Open' dialog PS CS6 and location, but it would seem that the option is no longer available.  What I get now is a window rather small (default).  I can resize and locate it, but it will not stick.  Next time I open the dialog box window is again at the default size and location.  I'm sure that there is probably an easy answer to this, but it is that I have not found so far.

    Thank you

    Gary

    The size and location of the operating system open and save dialogs are controlled by the operating system.

    And MacOS 10.11 has some bugs regarding the size and location of these dialog boxes that Apple is still trying to solve.

  • PS Cs6 - set the image at 300 DPI, but the text is always pixelly. Help, please!

    I am having trouble with the text tool in Photoshop cs6. I used it in my computer in my class, and it's a little weird. I put my photo at 300 DPI and the resolution is slightly more than 1000 x 1300 pixels. When I use the text tool, words are always pixely, could someone PLEASE tell me why this is happening? I know that PS is not super great text as illustrator is, but when I do the same in Cs4 and set it to actual pixels, the text was not entirely pixely. Help, please.

    Select the text and check the setting of the AA in the Options bar.  You probably set to None

  • Set the default font formatting for the "Add text" content editing tool (Adobe Acrobat Standard XI)

    We have recently updated for Adobe Acrobat Standard XI.

    Our users take system generated a PDF file and customize them by adding images and additional text. Generally, they always use specific fonts when adding their text formatting options.

    Unfortunately, we have not been able to find a way to set the default value for font formatting options when you use content editing tool "add text". You're still stuck with the Minion Pro police to 12 points.

    Therefore, whenever the user adds a new text, they must select the text they have just added and then change the font options in the pane of formatting content editing tools. It would be really useful to be able to define the police by default once the formatting options and added new text would use these settings.

    content-editing.PNG

    Hello

    We've added the feature in Acrobat DC to pick up the nearest police to the neighbor during "Add text", as a user would add text that would be in the style of the existing content, and that the replication manually existing values is a tedious exercise. However, once the user changes the police or its size, Acrobat remembers the changes for the rest of the editing of the document session. That works for you?

    You also asked for a default font and the setting of all of the documents and Acrobat sessions, user defined manually. Is this correct? If so, unfortunately, is not possible at present, but we can grasp this feedback and evaluate it for our future releases.

    Kind regards

    Ankit - prom

  • How to set the font on the text selected in textframe?

    Hello

    I want to change the font (let's say Times New Roman) of the selected text in textframe when I click on the menu of my plug-ins item.

    I have gone through the documentation of the Adobe text engine and tried a code for setting fonts but failed. I do not see a member function in class IFont to set the desired font, so impossible to move forward.

    Please see the code. I would like to know something more that how can we define a specific font for a textframe?

    TextRangesRef rangesRef = NULL;

    result = sAIDocument-> GetTextSelection (& rangesRef);

    aisdk::check_ai_error (result);

    ITextRanges ranges (rangesRef);

    If (mountain ranges. GetSize() > 0)

    {

    Range ITextRange = ranges. Item (0);

    ICharFeatures = range characteristics. GetUniqueLocalCharFeatures();

    IFont fonts;                     I don't see any method to make the desired font.

    features. SetFont();

    Thank you.

    D.A.

    First, download the policy:

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

    AIFontKey fontKey = 0;

    Error AIErr = sAIFont-> FindFont ("Times New Roman regular", kAIAnyFontTechnology, kNativeAIScript, 0, & fontKey);

    do something with the error

    ATE::FontRef fontRef = 0;

    error = sAIFont-> FontFromFontKey (fontKey & fontRef);

    do something with the error

    ATE::IFont do (fontRef);

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

    Then, apply like this:

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

    ATE::TextRangeRef textRangeRef = 0;

    Error AIErr is sAITextFrame-> GetATETextRange (handle_to_artwork & textRangeRef);.

    check error

    ATE::ITextRange textRange (textRangeRef);

    ATE::ICharFeatures charFeatures = textRange.GetUniqueLocalCharFeatures ();

    charFeatures.SetFont (do);

    textRange.ReplaceOrAddLocalCharFeatures (charFeatures);

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

    There are several other ways to set the text, but you must understand how the paragraph & character styles interact with each other to understand the differneces. It is the simplest way to do it well.

  • setting the color of the font in a text flash Member

    Hi all

    I'm trying to set the color of my text in a text flash member using the script below, but I get an error. No idea why? Thank you very much

    on startmovie
    Sprite (7) .fontSize = 20
    Sprite (7).font.color = rgb (153,153,51)
    end

    If you use the flashComponents, you should consult the
    the documentation that comes with Flash for formatting information. TO
    to make changes, you need to set the style of the element. Of
    Manager, you can change the color of the text for a TextInput component as
    This (assuming that your wickedness is in channel 1):

    Sprite (1). SetStyle ("Color", "0xFF0000")

    That will change the color red.

    Other style options (for flash TextInput component) are:

    backgroundColor
    borderStyle
    marginLeft
    marginRight
    disabledColor
    IncorporerPolices
    fontFamily
    fontSize
    fontStyle
    fontWeight
    textAlign
    textIndent
    textDecoration

    You can find out what are the current values using getStyle()

    put sprite (1) .getStyle ("color")
    -"0xff0000".

  • How to set the font color to drop substantial text to a topic only

    I want to apply a different font color for drop-down text for a particular topic only. I tried to change the color through drop down text-> fonts-> font color-> properties apply. The selected color is displayed in the font color, but does not appear when the subject is presented as a preview. The drop-down list text appears in the color applied in style. Would appreciate advice on how to apply the drop-down menu the text color for a specific topic.

    If you have your style sheet saying you drop-down list text is blue, then it will be blue no matter what you do. It's logical. You can try using a different stylesheet for the single subject and changing the drop down to test color accordingly.

  • Set the font size for the menu items and content of the label tab?

    Old eyes, small fonts.

    I can manage the fonts/zoom for the content of the site. SITE OF FONTS ARE NOT THE PROBLEM.

    Y at - there a way to set the font of the browser settings in: config to control the fonts in the BROWSER MENU ITEMS (view file Edition... etc) and TAB TITLE (TEXT) CONTENT?

    PS - Keep us ordinary mat canned. A simple 'no' or 'Yes' with simple details of relevant about: config entries, would be nice. GREAT access to the most COMPREHENSIVE list possible would be on: configuration settings

    You keep it as the 'EASY' button, I take it? Ever have something like this for Thunderbird, now I feel a little stupid for not connecting the dots. Thank you.

    PS - just in case... Got a list of about: config options?

  • Is there a way to set the font size as default in WordPad - Windows 7?

    In Windows 7, is there a way to set the default value in WordPad to Courier 10? I see no place to set the default value. I save my changes and when I close and reopen the document it's back to Courier 11 and the spacing is all off. I create documents for customers who need very specific settings (including a 10 - PT font.) to copy and paste resumes to online applications. Once I have send the plain text for them, they, also, versions I can save these specific parameters. It's extremely frustrating; in XP and Vista, I was able to save 10-PT policy documents. I don't see why this was changed. Any suggestions? Anyone at MS have the power to solve this problem?

    I created a document called a new Doc - highlighted space vacuum-made my the font changes and size and saved.  So when I want a document with my size settings and the police, I opened my new Doc.  Make sure that when you save it you rename this new Doc remains empty.  I created a shortcut on the desktop and open the new Doc instead of WordPad.   I guess you can do your employees.  I hope this helps.

  • How to set the font color EditField

    Hi guys

    Please help me the EditField setting font color.

    I'm doing a screen context menu custom for the credentials of the user with a white background. The problem is that when I put background color to white effects all items included in cluding edit fields.

    To change the fields, I can not set the color of the font all text contained in them become invisible.

    Thank you

    Well it seems settled now.

    I created a custom class and and overrided the paint method

    public class CustomEditField extends EditField
    {
    private int fontColor = -1;
    ...
    protected void paint(Graphics graphics)
    {
        graphics.setColor(fontColor);
        super.paint(graphics);
    }
    
    }
    

    see you soon

  • How to retrieve a text font, text color, the size of the text in a text layer?

    How to retrieve a text font, text color, the size of the text in a text layer?

    Copy the following code shows how to retrieve the name of the font for a text layer. (cs6 and upward, I think)

    var textProp = myTextLayer.property ("Source Text");

    textDocument var = textProp.value;

    textDocument.font;

    the following thread shows hot to launch AEGP_ExecuteSrcipt() and how to get the result back to the side C:

    http://forums.Adobe.com/message/3625857#3625857

    (he treats actually layers of text!)

  • Animate the edge - sets the resizable text animated along (it is useful for all devices)

    Hello

    I built a walk produced through demo using edge animate, in this demo I put stage the percentage, but when I see my ipad demo, the text remains its original size.

    Please help me, how the text according to my persentage of scene.

    Concerning

    E. Ku Muduli

    If you want that two separate text with two sizes of separate text boxes, your code would look like this:

    set the originals

    var originalWinWidth = $(window) () .width;

    set the font size as original

    var originalFontSize = 20;

    var headingFontSize = 30;

    Set the ratio of change, each change of size

    var ratioOfChange = 50;

    set the font size using jquery

    SYM. $("conteneur") .css ("font size", originalFontSize);

    SYM. $("rubrique") .css ("font size", headingFontSize);

    $(window) .resize (function)

    {

    get the width and height as the window resizes

    winWidth var = $(window) () .width;

    get the width difference

    var winWidth = widthDiff - originalWinWidth;

    check if the window is larger or smaller than the original

    If (widthDiff > 0)

    {

    our window is larger than the original so to increase the font size

    var pixelsToIncrease = Math.round(widthDiff / ratioOfChange);

    calculate the new font size

    var newFontSize = originalFontSize + pixelsToIncrease;

    var newHeadingFontSize = headingFontSize + pixelsToIncrease;

    new font size Set

    SYM. $("conteneur") .css ("font size", newFontSize);

    SYM. $("rubrique") .css ("font size", newHeadingFontSize);

    }

    on the other

    {

    our window is smaller that the original so decrease the font size

    var pixelsToDecrease = Math.round (Math.abs (widthDiff) / ratioOfChange);

    calculate the new font size

    var newFontSize = originalFontSize - pixelsToDecrease;

    var newHeadingFontSize = headingFontSize - pixelsToDecrease;

    Set the new font size

    SYM. $("conteneur") .css ("font size", newFontSize);

    SYM. $("rubrique") .css ("font size", newHeadingFontSize);

    }

    })

  • How to set the size of the text by the height of the capital letter?

    As an old signmaker, I have always referred to the size of a letter by the actual height of a capital as 'E '. Is it possible to assign the format letter by the height of a capital letter?

    Assign the effect "hierarchical", the text object. Set preferences for «Limits of use overview» To adjust the height.

    Does not work worth a dang with text.

    1 type tool: Set PointType object default myriad, 12pts Type 'X '.

    2. apply the effect > describe the object

    3. the general Prefs > turn on use Preview Bounds.

    4 Control Panel: turn on the proportional button.

    5. button '2' in height. Height passes to 1.2828.

    6. button '2' in height. Height passes at 1.7275.

    7. button '2' in height. Height passes at 1.8965.

    8. button '2' in height. Height goes to 1,9606.

    9 button '2' in height. Height passes to 1,985.

    10 key '2' in height. Height passes at 1.9943.

    11. key '2' in height. Height goes to 1.9979.

    12. button '2' in height. Height passes to 1.9992.

    13 '2' in the height field button. Height becomes 1.9997.

    14. button '2' in the height field...

    Nor do I want to have recourse to the use Preview Bounds development, affecting everything in the document. (Illustrator has so many things buried in general Prefs that should be more specific document/context.)

    The mentioned script is here. However...

    DMCLV, for this reason, sign stores commonly use Corel Draw rather than (or at least the) Illustrator. Draw has an explicit function which lets call you for the type of ceiling height. When you select an object, the so-called 'Artistic text' (roughly analogous to what is called "PointType" in Illustrator), you can set the size normally. But the object field shows the height of character of the text object outlines. If you can, for example, define an 'X' and see its typographic size and height of contour at the same time. So you can enter the size using both methods, when you want without having to go through hoops.

    Draw also provides scales of design defined by the user, tools of dimension, the connector tools, legend tools and other useful features every day for sign shops and everyone (, too). If I were you (or I was), I would take advantage of competitive sidegrade Corel Draw. The discounted cost is easily justifiable even with all the other useful things included in the package in addition to the features of common sense missing still HAVE afer nearly three decades (font manager Bitstream, a large collection of fonts, PhotoPaint, a collection of clipart) large.

    JET

  • Set the color of the text for &amp; quot; Topics &amp; quot; DTC?

    I want to use a related topics text control at Design time. The fonts options to set the name of the font, bold, etc. and highlight, but not the color of the font. Is there a way to change the font color? To use a style as Hotspots in expansion? Or can I manually add something in the code?

    Hi, Margaret.

    If it's any help, the color is the fourth attribute that you can set for the property are the order of related topics. For example:

    There is more information here:

    http://msdn.Microsoft.com/en-us/library/ms644677 (vs.85) .aspx
    http://msdn.Microsoft.com/en-us/library/ms644681 (vs.85) .aspx

    Pete

  • Set the position of the cursor in the text added (to make the part of the text in index) in WORD using Report Generation Toolkit

    I would like to generate a report in WORD using the report generation toolkit.

    Whenever a text is added to the report, the program should put part of the text index. The problem I am facing with is to set the cursor position in the current location of the text.

    Any suggestions?

    Hello!
    I think that's what you wanted (see attachment).

    First, you must set position for each loop, so after adding the table, your cursor index need to increase the number of added characters. That's why I have included the text of the report, Append - to get the position of the cursor at the end.

    Indexing begins with 0, so you need to set the 3 and 7.

    Hope you get what I mean

  • How to set the cursor in the text of a message response

    I use TestStand 4.1.1. During testing, I need to analyze some data of the operator.

    I use a popup message with the response enabled text box. My problem is that the cursor does not automatically appear in the running text box. I don't want to have to put the mouse in the box every time.

    Is there a way to set the cursor to be automatically in the text box.

    Kind regards

    Don1.

    Hello

    You must make the answer box the active control. You will find 'Active Control' control in the main tab of the configuration of Message box Properties window.

    Concerning

    Ray Farmer

Maybe you are looking for