Illustrator SDK :: How To Set The Desired Font To Selected Text In Textframe
Dec 2, 2011
I want to change the font(let's say Times New Roman) of selected text in textframe when I click on menu-item of my plug-in. I went through the Adobe Text Engine documentation and tried some code for setting font but failed. I don't see any member function in IFont class to set desired font, so unable to move forward. see the code. I would like to know one more thing that how can we set a particular font for a textframe?
TextRangesRef rangesRef = NULL;
result = sAIDocument->GetTextSelection(&rangesRef);
aisdk::check_ai_error(result);
ITextRanges ranges(rangesRef);
[Code].....
View 3 Replies
ADVERTISEMENT
Feb 20, 2013
Is there a way to send a selected textFrame item to a layer using javascript?
I don't mind if it is send to current layer or some other way to accomplish the task.
(Using Adobe Illustrator CS4)
View 5 Replies
View Related
Mar 29, 2013
I've encountered a strange issue in PSDs I've inherited from another designer.
When I have a text layer selected with the type tool active, the font size reads correctly (say, 40px). When I actually select the text with the type tool, the font size gives a strange number (say, 38.74px).
See the screenshots below:
This is on OSX 10.8.3, Photoshop CS6.
View 1 Replies
View Related
Feb 23, 2012
I'm trying to read a text file into a textFrame. It reads in but is not including linefeeds so it's just one big long line of text. I'm using the following code to read the file. I attempted to insert a character after each readln() but that didn't work. I also tried creating a variable that the readln() was stuffed into before setting the textFrame.contents to the variable, but that didn't work either. I'm stumped.
while (! notesDoc.eof) {
noteTextRef.contents += notesDoc.readln();}
View 2 Replies
View Related
Feb 23, 2012
I use adobe photoshop lightroom 3.6, earlier i was able to export photos to my desired folders in desired format but i am not at all able to export any photos at all!
View 1 Replies
View Related
Apr 3, 2014
Is it possible to use a textframe on a master page for means of common positioning of texts?
On pages based on this master page, I'd like to put individual text into this frame, or at least the exact location. Then, when I change the position of the textrame on the master page, the position of all textframes of the pages follow suit.
View 15 Replies
View Related
Jan 20, 2012
I have a textbox having some text and a shape like a curve given below. The text should be tranformed according to the shape pattern choosen.
Following figure shows what exaclty I want to do.
I have a curve, and textbox as shown in LHS of figure and I want output as RHS of figure.
View 4 Replies
View Related
Sep 3, 2013
I am working with scripting in Ai, fill gradient color in TextFrame. I search in this forum but the other topics fill color to path or line. For now, I can make a gradient color, but I don't know how to apply it to textframe.
View 6 Replies
View Related
Apr 15, 2012
This is my very first attempt at a script:
* this script will prompt the user for a file name and location and then save the current file as a .pdf with secure save options*/
var curDoc = app.activeDocument;
var destName = prompt ("Enter a Filename Daniel", "", "Save With Security");
var destFolder = Folder.selectDialog('Select which folder to save to :');
saveFileToPDF(destFolder+ '/' + destName); // not sure if i need this here ?
[Code] .......
i can do the math of (artboard width)-(text width) / 2 is start point of text but how do i find out the text width and the artboard width?
View 11 Replies
View Related
Jan 24, 2011
How to divide all textFrames in one-character-per-textFrame?
Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".
View 30 Replies
View Related
Sep 11, 2012
I think I might be doing this wrong, I am trying to get contents of a specific textFrame within first group on layer called "page numbers"
It seems to work, but is a bit sketchy, the documentation indicates textFrame is all the text frames in a document, and that textFrameItem should be the specific one within collections of groups etc, maybe I am misunderstanding. this is what I am using:
var existingPageNumbers = app.activeDocument.layers.getByName('page numbers').groupItems[0].textFrames[0].contents;
is this correct approach...?
View 1 Replies
View Related
Oct 27, 2013
I'm trying to find the smallest textframe within a group and then matching that textframe font size to the minimum size allowed for printing. Everything else works, except I can't figure out how to resize the textframe while also resizing its parent, the group.
#target illustrator
docRef = app.activeDocument;
gpRef = docRef.groupItems[0];
var gpHeight = gpRef.height;
[Code]....
I'm not even sure if I'm going about this the right way. Hoping a fresh set of eyes can take a look
View 3 Replies
View Related
Jul 5, 2011
How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Any sample.
View 5 Replies
View Related
Aug 8, 2013
I received an Illustrator file in which I have to implement a translated text. I see the text cursor, but when I try to select text it disappears and I cannot see how much of a sentence or word is selected. I can delete the selection or write something else in its place, but I am working "blind" without seeing how much of text I selected until I change it or delete it. I see nothing unusual in Preferences. It is the only Illustrator file that behave that way.
View 3 Replies
View Related
Sep 13, 2013
I'm making this diagram of the load condition acting on tunnels to explain a Japanese set of equations that are used for the structural analysis for tunnels:
load condition for EEM.jpg
But, there is one problem I have. I'm trying to set up the text for the dimension between the water table and the tunnel "Ha" to look horizontal.
However, if I click on the properties box and write 90 in the rotation box right next to where it says "text rotation," the dimension text does not rotate 90 degrees; if instead I try to rotate it 180° then it only rotates 90° (and in the opposite direction) instead of 180°. It doesn't matter how many degrees I choose, it won't rotate my dimension "Ha" to desired angle to make it look horizontal.
OK I know it's hard to explain my problem with just writing, so I've posted a few pictures:
In this one, the dimension is at 0°; I've only opened the properties box to attempt and rotate it: no rotation.jpg
Now I write 90 in properties box but the dimension text does not rotate at all; it remains at 0 as it is shown in the following image: 90 & no rotation.jpg
Next I try to rotate 180, just to see what happens; and it does rotate (only 90 degrees!): 180 rotates 90.jpg
I finally try to rotate the text 270 just to see if it rotates to desired angle and it does rotate (180 degrees from original position). As shown below:
270 last try.jpg
It doesn't matter how many degrees I choose, I cannot make it look horizontal.
How can I set up my dimension text "Ha" to look horizontal?
View 6 Replies
View Related
Nov 16, 2012
how do I move select parts of text? I have a "B" and a "G" that I put into Illustrator using the text tool. When I go to move the "G" onto the lower corner of the "B", it selects both letters and moves them as a block.
View 3 Replies
View Related
Feb 7, 2013
Have a document that has several artboards in it. (kinda like a multipage document). Each page is similar, but some of the text boxes has variations from page to page. So if I am zoomed in on page 1 to one text box and I select some text, using the type tool, and then hit SHIFT-page down (or page up) to go to the next page, it won't. Switch to a different tool, and it works.
WHY? Why can't I use a keyboard short cut to jump to another page while in the type tool mode? I don't want to take my hand off the keyboard or move the mouse.
View 1 Replies
View Related
Mar 18, 2014
Illustrator 15.1/CS5 on Mac used to display selected text in reverse and would show handles for text on a path. Now it does neither.
View 1 Replies
View Related
Aug 23, 2011
I'm an infrequent and relatively unskilled GIMP user. I have used drop shadow in the past, and have been using it this afternoon with no problem until I started working on one image where I can't seem to apply the drop shadow to some text. I've got a 3-layer image, a background, a smaller image on a separate layer, and a text layer. Whenever I try to apply drop shadow to the text layer or the smaller image layer, it applies it to the background. I've tried everything I can think of...deleting and recreating the text layer, changing the "level" of the layer, closing then reopening the image...closing and restarting GIMP.. I select the text layer, click "Filter > Light and Shadow > Drop Shadow", and apply and it always applies it to the background.
View 1 Replies
View Related
Feb 7, 2014
Encountered a bug when copying and pasting text from one text box to another? It seems to paste more text than I originally selected. I am on Mac OS X 10.6.8 and my AI is 16.0.4.
View 1 Replies
View Related
Sep 6, 2012
I'd like to draw a box around some selected text (a textRange), however I can't figure out how to detemine the size or position of the text. The overall size of a textFrame is possible to find (not sure about position), but when you've got just a few characters selected I don't see any way to get the size or position.
View 6 Replies
View Related
Feb 10, 2013
How can I take some text and select different parts of the text to change the color for the selected parts?
View 5 Replies
View Related
Oct 27, 2013
I am currently trying to cut out a word from another word in Illustrator. I have managed to do this several times before but both options I have used in the past simply are not working for me today.
As you can see from the attached image, I have 'cut out' the word 'I'm' from the word 'hungry'. (You can see straight through to what ever colour, fabric etc is underneath the logo).
Today I am trying to update my logo and the usual methods aren't working for me.
1. Type > Create Outlines > Divide
2. Object >Compound Path > Make
Usually I can simply delete the 'cut out' text from the image but I keep receiving an error messages that I don't understand.
1. "The filter cannot complete because more than one object is selected"
2. "Can't make a compound path. All objects in a compound path must be paths, and they cannot be brushed or part of an object."
I am a complete novice and I have never encountered these errors before. What used to be a simple 3 step cut out command is now a nightmare. I must be doing something wrong, maybe I have missed a step and not realised?
View 2 Replies
View Related
Feb 25, 2013
I want to change my selected text to a different cmyk color using javascript. I have tried and I do not know what is missing or what I am doing wrong.
if ( app.documents.length > 0 ) {
newCMYKColor = new CMYKColor();
newCMYKColor.black = 0;
[Code]...
View 4 Replies
View Related
Aug 21, 2013
I've recently started getting into Illustrator and was wondering if there existed a way to set a "document" font that all the text within the Illustrator file will follow? I'm building a generic document that I'd like to customize for clients by using their standard font. Is there a way to do this such that you only set the font in one place? I'd prefer to also font once rather than selecting all the text layers and changing the font for all.
View 3 Replies
View Related
Sep 23, 2013
how can i write text without a font?
View 5 Replies
View Related
May 21, 2013
I have lost the ability to highlight text to change fonts. How can I retrieve this funtionality?
View 3 Replies
View Related
May 14, 2013
The bottom portion of my text content is not appearing, so I assumed it would be fixed by an adjustment to the baseline text. When I altered the baseline text, the only thing that happened was the text moved upwards, but did not adjust the actual baseline. I need to copy and paste the text from Illustrator into Microsoft PowerPoint.
View 4 Replies
View Related
Jun 12, 2013
I am making a catalog for over hundred different school but all the same products and I want to logos to change. Is there anyway to automate this process by making a template and selecting the desired logo to fill in where i need it. I am using CS5 Illustrator.
View 2 Replies
View Related
Jun 12, 2010
I am creating a restaurant menu which has a lot of different sized text. Is there a way to mass change the sizes of the fonts all in one go?I'd like to be able to reduce all the lines by 1pt in one go, is there a way to do that?
View 3 Replies
View Related
May 9, 2013
I have lot of various fonts and various size of font used in a particular illustration. Can i able to know all the fonts and its size used in a single shot. Instead of going and checking one by one.
View 13 Replies
View Related