How to get the font name?
Hi i used the following code to find the font in illustrator cs3. but somewhere it exits the loop.
Please some one guide me.
AIArtHandle path=NULL,line;
short artType; AILayerHandle layer;
ADMItemRef ItemRef, FontListRef;
ADMListRef theItemList, FontList;
short ccount;int l, i;
AIErr error;
long count, FontCount;
char buf[250],fonttext[500];
short forfont;
AIFontStyle faceStyle;
AIFontKey fontKey;
int idx;
ADMEntryRef entry;
AIArtHandle textPath=NULL;
AIArtSet artSet;
long numLayers;
unsigned char title[150];
strcpy(ArtAssess.FontList,"\0");
error = sAILayer->CountLayers( &numLayers );
ItemRef = sADMDialog->GetItem(g->qcGuide , lstDifferences);
theItemList = sADMItem->GetList(ItemRef);
FontListRef = sADMDialog->GetItem(g->qcCheckDialog , lst_FontsTo);
FontList = sADMItem->GetList(FontListRef);
//for ( int q = 0; q< numLayers; q++ )
for (int q = numLayers-1;q >= 0; q-- )
error = sAILayer->GetNthLayer( q, &layer ); //extracting layer by layer
sprintf(buf,"%d",q);
MessageBox(NULL,buf,"q",0);
error = sAILayer->GetLayerTitle( layer, title );
if(strstr((char*)title,"SCAN")==0 && strstr((char*)title,"Bounding Box")==0)
error=sAIArtSet->NewArtSet(&artSet);
error=sAIArtSet->LayerArtSet (layer,artSet );
error=sAIArtSet->CountArtSet (artSet, &count );
FontCount = sADMList->NumberOfEntries( FontList );
int fontfound=0;
for(long j=0;j<count;j++)
error=sAIArtSet->IndexArtSet (artSet,j,&path );
error = sAIArt->GetArtType(path,&artType);
if (artType==kTextFrameArt)
//char buf[250];
AIPathStyle style;
AIPathStyleMap styleMap;
long index;
TextRangesRef selRef;
TextRangeRef textRange;
sAITextFrame->GetATETextRange(path,&textRange);
if ( error ) throw( error );
ITextRange itext( textRange );
ICharFeatures features=itext.GetUniqueCharFeatures();
bool isValid = false;
IFont textfont=features.GetFont(&isValid);
FontRef FntRef=textfont.GetRef();
sAIFont->FontKeyFromFont(FntRef,&fontKey);
MessageBox(NULL,"Fonts","2",0);
//sAIFont->GetFullFontName(fontKey,fonttext,forfont);
sAIFont->GetUserFontName(fontKey,fonttext,forfont);
//sAIFont->GetFullFontName(fontKey,fonttext,forfont);
sprintf(buf,"%s",(char*)fonttext);
MessageBox(NULL,buf,"Font Name",0);
bool Exists=CheckIfValueExists(ArtAssess.FontList,buf);
if (Exists==false)
strcat(ArtAssess.FontList,buf);
MessageBox(NULL,ArtAssess.FontList,"Fonts Used",0);
strcat(ArtAssess.FontList,";");
Exists=true;
MessageBox(NULL,"End font","",0);
return kNoErr;
When dealing with text frames that contain multiple styles such as different fonts, kerning or point sizes etc. You need to split the text frame into text runs.
Using an ITextRunsIterator you can essentially split the text frame into a list of uniquely-styled text ranges.
AIArtSet artSet;
long artCount = 0L;
AIArtSpec spec = {kTextFrameArt,kArtHidden,0 };
sAIArtSet->NewArtSet(&artSet);
sAIArtSet->MatchingArtSet(&spec, 1, artSet)
sAIArtSet->CountArtSet(artSet,&artCount);
for (int index = 0; index < artCount ++index)
TextRangeRef trRef = NULL;
AIArtHandle art = NULL;
sAIArtSet->IndexArtSet(artSet,index,&art);
sAITextFrame->GetATETextRange(art,&trRef);
ATE::ITextRange textRange(trRef);
ATE::ITextRunsIterator textRunsIterator(textRange.GetTextRunsIterator());
while (textRunsIterator.IsNotDone())
// All of the text in this text range will have the same stylistic attributes
ATE::ITextRange range(textRunsIterator.Item());
// Get your character features etc here.
textRunsIterator.Next();
Similar Messages
-
How to get the font name used in document?
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..Oviya... wrote:
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..
Are you talking about the location of the font? -
Get the font names and image names in QXD
Hi,
How to get the font names and image name in Quarkxpress document file using java?.
Is any third party packages for getting font n image names in QXD?
thanks,
nithyartuck,
I believe this may solve it:
Open System Preferences and go to Accessibility. Next, select Display from the source list along the left, then check the box labelled Reduce transparency.
It was first presented in this post #15 by TheUlser:
https://forums.adobe.com/message/6854594#6854594 -
In Mac how to get the Full name of a file Programmatically?
Hi Friends,
I am doing one Mac application for displaying the contents of a file. I can able to get some information about the file by using this code below...
NSDictionary *dict=[fileManager attributesOfItemAtPath:myPath error:nil];
Now I want to get the some other informations also like Full Name, copyRight, version... So Please suggest me how to get the full name of a file Programmaticallly?Your question doesn't make sense.
First off, if you are going to get the attributes of a file, you need its full name before you can do anything. So that's part one taken care of.
This function returns a dictionary full of typical file information (type, size, mod dates, etc.) as well as some HFS data (creator code, type code) which, I strongly suspect, are not "pulled out of the file" but rather generated on the spot. (See NSFileManager for the full list of attribute keys.)
The other items you hoped of retrieving are not part of the regular file system. Sure, a Truetype font has a copyright string and a version, but what about an HTML file? A PNG? A text file you just created?
There simply are no standard functions to retrieve copyright and version. -
How to get the Text name to pass in the parameter header in save_text
Hi,
I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how to get the text name in order to pass the parameter header in save_text.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no to get the link and pass it in the text_name.
can anyone help me out?
krishnanHi,
Your query is.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates
In above number
300 - Client
1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
BR,
Vijay -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
How to get the VARIANT name in the program
Hi Guys,
Can somebody tell me how to get the VARIANT name in a program.
I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.
Thanks,Hi,
Variants are stored in table VARI and VARID.
You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.
please check out the link below it will be helpful to you
Re: Programs for a transaction variant
Hope this helps.
ashish -
How to get the role name in which query is published ?
Hi Experts,
Is there any table where i can get the name of the role in which a particular query is published. I know that if i have a role , i can check in pfcg giving that role name and in menu tab i can see all the queries published under that role. But if i know query but not role how to get the role name . Is there any table or functon modules or programs to get the information.
Thanks & Regards
Vamsi KiranCheck this table
AGR_HIER -
How to get the field name of an internal table during runtime?
How to get the field name of an internal table during runtime?
Hi Sudhir,
Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
Example Code:
<b> DATA: v_field(60). " Insert this code.
GET CURSOR FIELD v_field. " Insert this code.</b>
<b>CHECK v_field = 'ITAB-KUNNR'. " Insert this code. (or)
Write: v_field.</b>
Regards,
Ramganesan K. -
How to get the column names of the table into the Dashboard prompt
how to get the column names of the table into the Dashboard prompt
Thanks & Regards
Kishore PHey john,
My requirement is as follows
I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
My pivot table looks like this
COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
---------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK REGION DOLLARS DOLLARS DOLLARS DOLLARS
1 CENTRAL 10 20 30 40
2 SOUTHERN 10 30 30 70
3 EASTERN 20 20 20 60
4 WESTERN 10 20 30 40
When i select the District in column selector
Report has to display rank based on Total Sales by District. i.e
------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK DISTRICT DOLLARS DOLLARS DOLLARS DOLLARS
for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
do you have any solution for this?
http://rapidshare.com/files/402337112/Presentation1.jpg.html
Thanks & Regards
Edited by: Kishore P on Jun 24, 2010 7:24 PM
Edited by: Kishore P on Jun 24, 2010 7:28 PM -
How to get the function name/ID of the current page
HI,
I searched the forum and google, but it is not clear on how to get the function name of the current page.
I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
Or is there a better way of know where user is coming from ? like geturl....
Please help, I need this ASAP.
Thank you.Use below to find out how the user came into the page
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
So one of them will be true based on the function the user came in.
Write your logic based on these flags.
Regards,
Peddi. -
How to get the owner name for the file in ftp using abap ?
Hi folks ,
How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
but doest work out me . Helping in this regard highly appreciated ...
Thanks and regards,
Swarupa VanarchiHi
dont you have used the os user while calling the FTP_CONNECT FM?
Hope you are not talking about the user executing the FTP program.
Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
May be i am going too far with if and elses here as your question possesses no clarity.
Plz elaborate your requirement before anybody can help.
Regards
sateesh -
How to get the form name which is used in standard tcode like me23n in sap
how to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PMhow to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM -
IDM : How to get the Resource name in Exclude Rule during Reconciliation?
Hi
Problem Statement => How to get the Resource name in Exclude Rule during Reconciliation.
Problem Description => Apparently, we use exclude rule for not consider some account during reconciliation.
I need the resource name in exculde rule during reconciliation. I tried with getResources() method which is an inbuilt method.But it gives all the resources are aviablable in the repository (IDM). I need only the current reconcilied resource name instead of fetching all the resouce.
Can any one please help how to get the resource name in exclude rule during reconciliation?
Thanks in advance for you help.
Thanks,
ChellappanHi,
Thanks for your reply.
I have 50 resouces and these resouces using the same kind of exclude rules. In the exclude rule, i am using resource name to do some work. If i get the resouce name in exclude rule, then i can use the same exculde rule for 50 resources. This will minimise the rule count from 50 to 1. For that, i need resouce name.
Thanks,
Chellappan Sampath. -
How to get the ACCOUNTING_FLEXFIELD Name in a Multi Ledger Instance?
Hi,
How to get the <ACCOUNTING_FLEXFIELD> Name in a Multi Ledger Instance from logged-in Responsibility? Is there any profile option available?
SELECT id_flex_num
INTO l_structure_num
FROM apps.fnd_id_flex_structures
WHERE ID_FLEX_CODE = 'GL#'
AND ID_FLEX_STRUCTURE_CODE=<ACCOUNTING_FLEXFIELD>;
TxSMOD->SEUED001->Display componens->double click on EXIT_SAPLEDITOR_002->See the source code...
function exit_sapleditor_002.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(PROGRAM) LIKE SY-REPID
*" EXCEPTIONS
*" CANCELLED
include zxseuu22 .
endfunction.
PROGRAM is the importing parameter for the function module.
matt
Maybe you are looking for
-
Hello, java newb here. I have been working on one of my assignments for school. Where as we haven't gotten into GUI yet ... the many required output options of the assignment make it seem almost crazy not to have an interface to navigate with. I have
-
How to add breakpoint in abap code
when use <i><b>java</b></i> call abap code , how to add breakpoint in abap code?
-
Pro*C doesn't generate ansi C code
Hi, Oracle 8.1.7 Here is my pre compile command with ANSI_C flag: proc CODE=ANSI_C SQLCHECK=SEMANTICS USERID=user/pass iname=toto oname=toto.c And here is my compile command gcc -ansi -DOS_SYSV=4 -DOS_SOLARIS -DOS_SOLARIS_2 -fPIC -g -O1 -W -Wall -Wpo
-
I have a table with fields SELECT TOP 1000 [BAT_TYPE] ,[ITEM_TYPE] FROM [dbo].[BATT_TYPES] bat_type item_type 120-M Batt 54-FM Batt 45-FM Batt | | | | commercial Non-Batt fuel Non-Batt tender Non-Batt I need to pass
-
9ias,database,forms6i,reports 6i for linux
we want to shift our platform to linux(still not decided the version). Before shifting to linux I want to know that..... which are the various linux versions(tested) that oracle 9ias v1.0.2.0.0 or above (with forms,reports & discoverer), Forms 6i, Re