Filling Text art with gradient or pattern

Hello all,
I'm trying to fill some existing arts (path, text, compound) with a just created gradient or a pattern loaded in the swatch
To achieve that I'm trying to change the path style:
GetPathStyle (myArt, &pathArtStyle);
     pathArtStyle.strokePaint = false;
     pathArtStyle.fillPaint = true;
     pathArtStyle.fill.color.kind = kGradient;
     pathArtStyle.fill.color.c.b.gradient = myGradient;
SetPathStyle (myArt, &pathArtStyle);
This works for kPathArt,
but nothing happens for kTextFrameArt or kCompoundPathArt.
How can I program this ?
thanks in advance
PS: I also tried to program the procedure "How to Fill Text with a Pattern or Gradient in Adobe Illustrator" described for illustrator UI, w/o success
PS: I have similar problem when trying to create a clipping using SetGroupClipped()  (see AI function reference) while the clipping path is a text or compound. No clipping is done.

To fill text with a gradient or pattern youi can do two things, either
1) outline your text (Type > Create Outlines) then click on the pattern or gradient swatch you require. For easier control of gradients it is best to make a compound path of all the letters. This method is not editable because the type is no longer live.
2) If your type needs to be live do the following: Type your text and colour it None (no fill, no stroke). Then Appearance panel flyout menu; Add New Fill and click on your swatch.

Similar Messages

  • Crosshatch Pattern to fill Text Box or polygon shape???

    I often have a need to define a certain area or room of a floor plan as the part we'll be using.
    In the past, I've done this by creating a text box with No Borders, then filling it with a color and 25% opacity.
    Our new attorney says "no colors...use a cross-hatch pattern in the defined area".
    So, my question is, once I've defined the area with a text box or by using the Polygon Tool, how do I fill the space with a crosshatch pattern???
    I've tried creating a small jpg (attached) of the sort of pattern I'd like it to be filled with, but can't figure out how to implement it so it will be used as a fill option.
    Thanks in advance for any help you may provide.
    I'm using Adobe Acrobat Pro, Version 9.2.0.
    Thanks again,
    D Flash
    Durham, NC (usa)

    Michael,
    Thanks for your response (and lawyer humor!).
    I've attached a document showing the type of thing the lawyer's referring to.
    in the attached drawing it shows two spaces we're using, surrounded by a polygon box and "filled" with a slightly opaque color.
    His concern is after much copying, it would always be easier to see the defined area if it was filled with a crosshatch, as opposed to a color.
    Is there a way to do that, perhaps using a custom-made stamp...I tried that with the jpg I provided in my previous post, but the jpg would not "fill" the area, and I was not able to "size" it to fill my space.
    Do you (or anyone else) have any suggestions as to how to accomplish what he's asking of me, using Acrobat????
    Thanks so much,
    Flash

  • How to determine column inches in a text frame with intersecting frames?

    I am trying to write a script to determine how much text would fit in a text frame before actually having the text. If the frame has no run-around areas intruding on the frame it is the simple depth of the frame. Is there an easy way to determine the area of the frame with the obstructed areas subtracted?

    Maybe you could fill text frame with placeholder text:
    myTextFrame.contents = TextFrameContents.placeholderText;
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/

  • Having problems with gradient fill.

    Having problems with gradient fill. Not sure how to select the gradient circles between outer circles consistently especially when there are more than 3 colors.

    Hi,
    It should be somewhat easier to try that out in landscape orientation. Does that help?
    thanks,
    Ignacio

  • Iam using a table in numbers to plot daily graph lines. If I fill a cell with a text box  at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is tho

    I am using a table in Numbers to plot daily graph lines. Mood swings of how I am on the day, i"m a depressive.
    If I fill a cell with a step box at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is there a work around. so thatbgraph only plots on the day?

    The answer is (sort of) in your subject, but edited out of the problem statement in the body of your message.
    When you use a stepper or a slider, the value in the cell is always numeric, and is always placed on the chart if that cell is included in the range graphed by the chart.
    But if you use a pop-up menu cell, you can specify numeric or text values in the list of choices for in the menu. Numeric values will be shown on the chart. Text values will not.
    For the example, the values list for the pop-up menu was:
    5
    3
    1
    Choose
    -1
    -3
    -5
    The first pop-up was set to display Choose, then the cell was filled down the rest of the column. Any text value (including a single space, if you want the cell to appear blank) may be used instead of Choose.
    For charts with negative Y values, the X axis will not automatically appear at Y=0. If your value set will include negative values, I would suggest setting the Y axis maximum and minimum to the maximum and minimum values on your menu list, rather than letting Numbers decide what range to include on the chart. Place a line shape across the chart at the zero level, and choose to NOT show the X axis.
    Regards,
    Barry

  • Filling in a shape with a dot pattern

    Hi there,
    I have this shape of a light which I am trying to fill with a dot pattern but when applied it cuts some of the dots off.
    How can I avoid this?
    Ideally it would also follow the 3 dimensional shape of the object, like the first picture.
    This is correct style of pattern I'm trying to achieve but wrong shape (I did not create this one) :
    This is the right shape but wrong pattern style:
    Thanks for your help!
    Charles

    Thanks, I've cleaned up the shape manually as the the tutorial suggested but it still doesn't quiet look right.
    Is there a way I can perhaps manipulate the pattern in order to follow to 3D shape whilst keeping the dots round?

  • Infinity ribbon with gradient fill

    Looking for a way to create an infinity shape/ribbon with gradients. After that I need to create several layer of fills that intertwine on top and below each intertwined ribbon.
    Help if you can
    w

    webbeese wrote:
    Looking for a way to create an infinity shape/ribbon with gradients. After that I need to create several layer of fills that intertwine on top and below each intertwined ribbon.
    Do a search here (Illustrator Forum). There's a great tutorial by JET (JETalmage) and a very good thread...

  • Filling an object with a pattern without distortion?

    I have this camo pattern:
    wich already tiles seemlessy but when i turn it into a swatch it won't tile. it distorts the pattern and blows it up instead of using it as is and tiling:
    what is the problem here? can i scale it in some option menu? can i control the orientation? im creating a vector based logo, is this the right way to go about filling the object with this pattern?
    i want it to be scaled and tiled. what is the best way to go about it? what would u do? thanks in advance

    yup i thought so. it HAS to be vector based.
    it does not have to be vector, it can be jpeg or gif, but it has to be embedded...as for not using it in a logo, Scott can explain that.
    255x247 px
    the object is any size as its a vector. How are u filling yours? photoshop then a clipping mask?
    I meant the size of the camo image in relation to your vector object, not the actual size in pixels.
    in this sample I grabbed a GIF, embedded it, dragged it to the swatches palette, sent the image to back, then filled both the small object and the big object with the gif-embedded swatch, just to illustrate what happens with the size position.

  • Filling Text with a Texture?

    I want to take a piece of video (specifically the metal texture from the generator tab) and fill my text face with it.  What I've tried:
    Selecting "Face" in the 'text' section of the inspector for the text I want to fill
    Then I selected "Texture" from the "Fill With " drop down menu
    Then I clicked inside the "Source Media" icon,
    Next the monitor split and when I selected the section of video I wanted to use (in this case the metal texture I dragged from the generators) I clicked "apply clip"
    and then nothing happnes, and the "Source Media" thumbnail remains blank..
    I also tried this with other random video clips just in case it might be the generator, all to no avail...
    ...am I doing something wrong or is this another bug?

    Put the texture on top of the video. Put the text on top of the texture. To the text apply blend mode Stencil Alpha. Combine the text and the texture into a compound clip.

  • Filling a Rectangle with a gif as pattern

    Hi!
    How do load and fill a Rectangel with a gif picture as pattern?
    I have looked at the following html page.
    http://java.sun.com/docs/books/tutorial/2d/display/example-1dot2/ShapesDemo2D.java
    Regards
    Johan

    Look at this applet.
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class Pat extends Applet 
               Image  i1;
    public void init()
         try
              URL u1 = new URL(getCodeBase(), "game1.gif");
              i1 = getToolkit().getImage(u1);
              MediaTracker tracker = new MediaTracker(this);
              tracker.addImage(i1,0);
              try   {tracker.waitForID(0);}
              catch (InterruptedException e){}
         catch(Exception e){};
    public void paint(Graphics g)
         super.paint(g);
         g.drawImage(i1,10,20,10+100,20+100,0,0,100,100,null);     
    public void update(Graphics g)
         paint(g);
    Noah

  • Error in CodeFirst Seed with migrations : Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Category'.

    Hi,
    I have activated migrations on my Azure Mobile Services project. I filled the new seed function Inside the Configuration.cs class of the migrations. If the tables are empty, the seed function is going without any problems. When my AddorUpdate tries to update
    the first object I get the error in the inner exception : "Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Category'."
    Part of my code is as follows:
    context.categories.AddOrUpdate(
    new Category { Id="1", Code="GEN", Text="General"},
    new Category { Id="2", Code="POL", Text="Politics"},
    new Category { Id="3", Code="FAS", Text="Fashion"},
    new Category { Id="4", Code="PEO", Text="People"},
    new Category { Id="5", Code="TEC", Text="Technology"},
    new Category { Id="6", Code="SPO", Text="Sport"},
    new Category { Id="7", Code="LIV", Text="Living"}
    Any help is welcomed. Thanks.
    Faical SAID Highwave Creations

    This occurred to me because I changed my POCO models to inherit from EntityData after I had already created my database without the extra Azure Mobile Service properties (UpdatedAt, CreatedAt, Deleted). The only way I fixed it was to drop the database and
    start over with my classes inheriting from EntityData from the beginning. If you can't do that then I would create a new table with EntityData models and see how that database is created and manually update your tables to match those. Here's an image of one
    of my tables from the management console on Azure. You can see that CreatedAt is an index.

  • How can I fill a path with a grid?

    Hi,
    I'm trying to fill some text that has been converted to outlines with a grid pattern (like graph paper). I need the grid to be made up of paths. Is this possible?

    Yes this is possible. This is a little easier with live text as all you have to do is select the 2 elements and do a CMD 7 (Mask). When your text is outlines select the text only, and do a command 8 (make compound), as an additional step prior.

  • Text taking a gradient when placed in perspective

    Can anyone tell me, looking at the AI file available here (in the Public folder of my Dropbox), why the text takes a gradient when I place it on a perspective grid? I'm not able to see anything in the Appearance panel that gives me a hint. It may be obvious to someone without even needing to open the file . . . see pictures attached.
    Many thanks, as always.
    Rob

    Hi, Kurt.
    Eventually I got it. When I was only clicking on the object with the Perspective Selection Tool, the Appearance palette gave me no information. Because the object was selected, I couldn't understand why I wasn't seeing any attributes. 
    Double-clicking, putting the text object into isolation mode, finally enabled me to change the fill.
    Very thankful to you and others on this forum for being as prompt and helpful as you've been.
    Rob

  • How to parse data from a text file with no convenient delimiters?

    I need to read data from a text file.  This file contains one line of data with the repeating pattern "time 00 ADVar2: ___ Height: ____ time 01 ADVar2: ___ Height: ___ ..."  I need LabView to parse out the "time" and "height" values, build an array with the values, and graph the correlation on an X&Y plot.  Does Labview have an automated way to read to the input data file and parse out the correct values, even without convenient delimiters?  Thank you.

    You actually do have a convenient delimiter: "time". Thus, you can make an array using that as the delimiter. Only caveat is that the first array element will be empty. Then you can conveniently use the Scan From String function in a for-loop. Something like this:
    Message Edited by smercurio_fc on 11-21-2008 03:13 PM
    Attachments:
    Example_VI.png ‏9 KB

  • Numbers: how do I turn on the feature that fills the cell with typing that was previously used? The previous version had this feature. I could type the first letters of a name in a cell and the entire name would automatically appear.

    Numbers: how do I turn on the feature that fills the cell with typing. In the previous versions, I could type a name or word and then a list of names/words with the same letters would appear. I could choose the name/word to enter into the cell. This saved many strokes. If I was typing a word with only one like it previously entered, that word would appear, grayed, and I could simply tab to the next cell, automatically entering that word in that cell. Is this feature in this version of Numbers? The autofill tab 1)I can't turn it on and 2) it doesn't seem to do the same thing.
    Thanks.

    The developers failed to propagate that feature from version 2 to version 3. I believe it is on the short list of things to be restored in May 2014 or so.
    Here's the full list as published by Apple:
    Numbers
    Customize toolbar
    Improvements to zoom and window placement
    Multi-column and range sort
    Auto-complete text in cells
    Page headers and footers
    Improvements to AppleScript support
    Jerry

Maybe you are looking for

  • Disney Gnome Village doesn't work after installing the new iso 6 upgrade

    Just updated the new iso6 and the Disney Gnome Village applications does not open up. Have tried uninstalling and then reinstalled with no change. Other applications are working fine. any ides?

  • How to complete process with event listening inside

    Hi all, I have a workflow, a part of it contains a branch gate way: Branch 1: Wait point (7 days) Branch 2: Listening event If after 7 days and no event is sent, the workflow auto emails user and closes Oherwise it will route to another user. I obser

  • Smart Object Display Issue CS5 - Anyone else?

    I created a new PS document (CS5 Mac latest version) I have a few layers I grouped and made a smart object for ease of updating and reuse. Problem is my smart object just randomly disappear or even sppear to be "erased" by other layters if i move the

  • Update Optimizer stats

    Hi everyone, This is really urgent, Early watch report has showed that our update optimizer statistics are not up to date.So i m thinking to schedule Update optimizer job thro DB13.My system setup is very big n is linux based.So when do u feel is the

  • Can't get QT files to play in iWeb webpages any more...??

    drag a QT file onto a blank webpage, upload it, that's all I've had to do now for years.  All of a sudden, that doesn't work anymore.  Now the webpage plays back only the QT logo....