Copy font properties programati​cally

Hi,
How is it possible to copy text with its font properties from a string control/indicator to another?
I know that this can be performed with Ctrl-C (when the desired text is selected) an Ctrl-V (in the new location); however, how can I perform this action programmatically?
Thank you
Raymundo Cassani
Attachments:
copyFont.vi ‏10 KB

Yes, I meant without the FOR loop.
In my application, I have a string indicator that plays the Console role, continuously different parts of my code send messages (with a specific color and size) to be printed in the string indicator. However, as in your code, for every new message I have to read character by character the previous message in the Console and then add the new message; I would like to copy the entire Old state of the Console (with its font properties), concatenate the new message and only modify the font for the last message.
If I concatenate the Old state with the new text and only change the font for the new message I get this (Case 1), if I utilize the same approach than in your VI I get the desired results (Case 2). But this solution is very slow, to run copyFont_modified2.vi.
Thanks
Raymundo Cassani
Attachments:
copyFont_modified2.vi ‏15 KB

Similar Messages

  • Why no font.properties.zh_HK?

    In my JRE (1.4.1_06)'s lib directory, there is a font.properties.zh file (for S. Chinese) and a font.properties.zh_TW file (for Taiwan T. Chinese), but no font.properties.zh_HK file (for Hong Kong T. Chinese). Anybody have any idea why?
    Also, does anyone know if it is legal to copy font.properties.zh_TW to font.properties.zh_HK and redistribute it?
    The reason I'm asking: On an English XP box, with the appropriate fonts installed, if I set user.language to zh or zh_TW, the app starts up and displays fine. However, if I use zh_HK I see a bunch of boxes instead of T. Chinese. Once I make the file copy I mentioned above, all is well. Seems odd that file is not included by default.
    Thanks in advance for any insight.
    Jamie

    You probably have problems with both character encoding and font rendering.
    The character encoding part: If you use the same resources for TW and HK, you can't use GBK and Big5 conversions on them. GBK and Big5 are incompatible encodings. Also, GBK is for simplified Chinese, and used in mainland China and in Singapore, but rarely in Hong Kong - it doesn't have all the traditional Chinese characters that are used in Hong Kong.
    What you get from the translator may be encoded in Big5, or it may already be in ISO-8859-1 with Unicode escapes, the only encoding that the Properties class understands. If it's in Big5, use native2ascii to convert it. If it's ISO-8859-1 with Unicode escapes, leave it alone.
    The font rendering part: With Chinese (Taiwan) selected, the font.properties lookup (http://java.sun.com/j2se/1.4.2/docs/guide/intl/fontprop.html#loading ) uses the locale zh_TW and the encoding MS950, and finds font.properties.zh_TW. With Chinese (Hong Kong) it uses the locale zh_HK and the encoding MS950, and finds font.properties.zh. The zh file is for simplified Chinese, so you'll be able to render some, but not all of the Chinese characters used in Hong Kong. If you have HKSCS installed, the lookup uses zh_HK and MS950_HKSCS, and finds font.properties.MS950_HKSCS, which uses fonts appropriate for Hong Kong.
    Your questions:
    1. I don't know why the warnings are so strong. The only reason given is that "the package may affect private use characters", which could be a serious problem for somebody who seriously uses Chinese, but won't impact your occasional testing. You may want to check with Microsoft.
    2. That's what the support in JRE 1.4.1 and up is designed for. The only problem is that the font.properties files aren't consistently named - some are named using locale IDs, others using encoding names, with the results described above.
    3. To render Chinese characters in non-Chinese environments, you should upgrade to JRE 5.0 - its multilingual font rendering support uses fonts for all writing systems that it can find on the OS (http://java.sun.com/j2se/1.5.0/docs/guide/intl/enhancements.html#desktop ). With JRE 1.4.1 or 1.4.2, you'd have to look for Chinese fonts yourself and request them using their physical font names. For more information, see http://java.sun.com/j2se/corejava/intl/reference/faqs/index.html#desktop-rendering.
    4. JRE 1.4.1 is no longer supported, so info is hard to find. The documentation for JRE 1.4.2 mentions "HKSCS" at http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html#jfc. I admit, that's not too clear. A bit more helpful is the name of the font.properties.MS950_HKSCS file. Finally, this reply is info from Sun.
    Norbert

  • How to change font size of tree control content programati​cally

    Hi,
    Can I programtically change the font size of  parent item and child item in the tree control.
    In my application the parent and child items are changing  programatically. ie the content of tree control is not constant it is  dynamic.
    I am using labview 8.6
    Thank You
    Assumptha.
    Solved!
    Go to Solution.

    That does work...  
    To keep this line of instruction under the same title, how do you change ALL the text?  not just the active cell?  i've tried double clicking, then editing text properties using the font dialog (ctrl + 0) on a non-running vi, then saved it, and hit run.  but it always reverts to some preset font properties values, and i don't know where they're being set....???
    Any help would be greatly apprec! 

  • Copy text properties ?

    Hi,
    How to copy text properties (font, size, line-height, etc) from one text element to another ?

    You can record actions while formatting your text items the first time.
    Give them names like headline 1, paragraph, list item ...
    Assign the text properties by double clicking the text layer and one click on the action.
    :-) miss_marple

  • Adobe Acrobat 9 Pro - editing font properties in a text box

    When I insert a text box on an existing PDF, initially Acrobat usually allows me to edit the font properties.  Sometimes it does not.  Once I type in the text box, the font properties toolbar becomes locked (i.e., "grayed out") so I can't change font type, size, color justification and other font properties.  If I save the file, close it and then re-open I can edit then the font, at least for a while.  If I have other PDF files open too I usually have to close those other windows.  After some time the font properties again become locked.
    Obviously it is incredibly inconvenient to have to close a program and all open files then re-open those files just to change something like the color of a font.  I called Adobe tech support and they told me the fix was to buy Acrobat X.  I don't want to spend more money, I just want the product I already paid for to work properly.
    Is there a way for this bug in the software to be corrected?

    ** SOLVED FOR ME **
    Acrobat 9.0 and 9.1 Standard
    No v9 properties toolbar access except in last document opened
    I don't know if this applies to you but I had a similar problem with documents on our network.
    It turns out the documents were being saved as PDF/A or PDF/X format.
    I had the users open up Adobe.  Go to Edit>Preferences      Then go to the Documents section and find the "Open in PDF/A" section.  I had them select "Never"  and then the toolbars were no longer greyed out.

  • PDF created using Java iText package - Text not editable and not displaying font properties on Acrobat

    Hi,
    I have an issue in editing the text and viewing the font properties of a text region on a PDF created using Java iText package.
    I use Adobe Acrobat 9 Pro Extended and the option Tools -> Advanced Editing -> TouchUp Text Tool.
    The strange behaviour is that, I have 2 PDFs created out of the same base PDF and text added via Java iText package with the same Text, Font and other properties.
    One of the PDF has the text region editable on Acrobat but the other one has the text region which is not editable.
    But both the PDFs are editable via Adobe Illustrator.
    I have attached both the PDFs for your reference
    PDF_Editable.pdf - Editable on Acrobat
    PDF_Not Editable.pdf - Not Editable on Acrobat
    Any help or insight to find out the difference/issue with the PDF which is not editable via Acrobat would be appreciated.
    Thanks in advance.
    Regards,
    Madhusoodhan Henryraman

    You don't have direct control of the leading of a multiline text field. A common approach is to control the background color of the field with JavaScript since the lines are not really needed when the field is used in Reader/Acrobat. They may be useful when using the form by hand. For more information, see the posts by Max in this topic: http://acrobatusers.com/forum/forms-acrobat/how-do-i-use-multi-lined-text-fields-over-prin ted-line-area-existing-form

  • Font.properties help needed

    I have a USA client with several Reports that use fonts “OCR A Extended” and “Wingdings 3”. The OCR A Extended font is being used for a scanline by OCR scanners to call up invoices. They MUST use that font or the scanners don’t work. They are also using specific angled arrows from the Wingdings 3 font set. I can’t get either one to work in the Reports.
    I have mapped both OCR A Extended and Wingdings 3 to dialoginput in the registry.dat file.
    Getting the correct values into the font.properties file is the part that I’m having problems with. I’m trying to do this by following other examples I’ve seen, but I’m not hitting the correct combination.
    I have added:
    dialoginput.3=OCR A Extended,ANSI_CHARSET
    dialoginput.4=Wingdings 3,DEFAULT_CHARSET
    1) Do I need to add a “NEED_COVERTED” to either one of those lines? I’m guessing no because this is plain Windows US/English, nothing foreign.
    2) Do I have the proper _CHARSET for both of those lines?
    I have also added:
    filename.Wingdings_3=WINGDNG3.TTF
    filename.OCR_A_Extended=OCRAEXT.TTF
    3) Do I need to do that or should I take it out?
    From what I’ve read, if I use a NEED_COVERTED then I also need a:
    fontcharset.dialoginput.3=…..
    fontcharset.dialoginput.4=…..
    But I have NOOO clue what needs to follow the “=” sign.
    It is mission critical that I get both of these working, especially the OCR A Extended font. I thank you in advance!

    Hello,
    This Forum is about "Oracle Reports"
    Your question seems to be related to "Oracle Forms" :
    For the "Oracle Forms" Forum, go to :
    Forms
    Regards

  • Font.properties to set custom in-house fonts

    Hi all,
    Currently attempting to get Forms Server to display a custom fonts called TH Sans Serif which is MS Sans Serif modified for our special needs. We need to show a whole array of fonts which caters for Rumanian, Hungarian, Polish, Slovak, Western European fonts amongst others. Problem is that the font.properties file (loaded with Jinitiator to be found under %Jinitiator_Home%\lib) maps 4 fonts (Monospaced, SansSerif, Serif, Dialog) that are used in the registry.dat file. Apparently reading from newsgroups it is possible to set one of these four mappings to your own custom font. Haven't unfortunately found a success case yet. Can anyone help.
    Thanks in advance.

    Please use the Forms forum for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Packaging font.properties file.

    Hello All,
    I am developing a cross-platform application and I wat the Java runtime to use my own font.properties file. How can I specify that file using -D switch?
    (for example, for logging i write, java -Djava.util.logging.config.file=logging.properties MyApp so, is there a similar option for font.properties?)
    Thanks in advance,
    Ghaznavi

    Any body please help!
    Ghaznavi

  • Loading "font.properties" from different location

    Is it possible to tell the JVM to load "font.properties" files from a different location instead of "$JAVA_HOME/jre/lib"?
    Thanks in advance.
    Regards.

    Is it possible to tell the JVM to load
    "font.properties" files from a different location
    instead of "$JAVA_HOME/jre/lib"?
    Thanks in advance.
    Regards.I am also looking for a solution for this, since it's not a good idea to modify the JRE itself.
    Could anybody help? Thanks.

  • Font Properties- Hypertext/Dynamic Text Fields

    Is there any way to create font properties of text when using
    hyptertext code in dynamic text fields?

    you can create textformat objects and apply them to
    textfields and you can use css with html-enabled textfields.

  • Copy all properties from BOL Object to other, Help please

    Hello experts, Thanks for your time.
    I would like to copy all properties and object relations from BOL OBJECT To other.
    It's possible make it??
    I know to copy one by one properties with this code.
    lr_part->set_property( iv_attr_name = 'e_mailsmt' iv_value = ET_ADSMTP-E_MAIL ).
    But I would like to copy the relations and all properties.
    Could you write an example complete code??
    A lot of  Thanks

    Hi,
    I suppose by copying relations it is meant that a whole Business Object should be copied. Not just the part of BTAdminH but the PricingSet and the related Prices in there, the ItemsSet and all related entries in them and so on. Meaning a complete copy of all attributes in all objects.
    Judging from a mere technical point of view I see some problems with that:
    1. Abab does not offer a copy object method. Thus you would have to create a new object and use the SET_PROPERTIES( ) method on it.
    2. Though you will be able to do it for one object, lets say BTAdminH, it will be a huge load to do it for all related objects.
    3. Considering a piece of code that will run down the hierarchy and copy the objects for you will not work as the "hierarchy" contains circles and is not unique. For instance the BTPartnerSet on OneOrders contains various relations containing the same partners.
    In my opinion use the underlying API not the BOL to copy entries.
    cheers Carsten

  • Font.properties

    Is the jre using font.properties at all when displaying characters in the GUI? I removed all font.properties* files from my jre/lib directory and I am still able to display English characters and double-byte Korean characters. Certain fonts are not working for the Korean, but this all seems independent of the font.properties files. I'm using jdk 1.3.1_06.
    Bleu

    I have i18n.jar in my classpath and LocaleElements_ko.class is in it. The only font that works for me in Korean is Dialog with BOLD style. What relationship does font.properties have to i18n.jar? I guess the jre is getting the appropriate Font based on the Locale out of the i18n.jar? What do i need to do to get additional fonts (really I just want Dialog with PLAIN style) to work in Korean?
    thanks,
    Bleu

  • Using font.properties to map custom in-house true type fonts

    Hi all,
    I'm currently attempting to get Forms Server to display a custom fonts called TH Sans Serif which is MS Sans Serif modified for our special needs. We need to show a whole array of fonts which caters for Rumanian, Hungarian, Polish, Slovak, Western European fonts amongst others. Problem is that the font.properties file (loaded with Jinitiator to be found under %Jinitiator_Home%\lib) maps 4 fonts (Monospaced, SansSerif, Serif, Dialog) that are used in the registry.dat file. Apparently reading from newsgroups it is possible to set one of these four mappings to your own custom font. Haven't unfortunately found a success case yet. Can anyone help.
    Any suggested websites or newsgroups dealing with this would be greatly appreciated.
    Thanks in advance.
    Holger

    Please use the Forms forum for best response.
    Ashesh Parekh
    Oracle9iAS Product Management

  • Font.properties files

    Hello!
    Do you know at what point does the Java Runtime load font.properties file and how it selects the one to load?
    I am struggling with displaying cyrillic characters in AWT controls.
    I have a code like this inside the applet's init() method:
    =================================================
    Locale rus = new Locale("ru", "RU");
    this.setLocale(rus);
    DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, rus);
    String s = df.format(new Date());
    displayString = new Label();
    displayString.setLocale(rus);
    add(displayString);
    displayString.setText(s);
    ===========================================================
    The output is supposed to be "12 ������, 2005�."
    Instead, every cyrillic character is replaced with a square box.
    I think the JRE is just loading the wrong font.properties file somehow...
    BTW, my OS is an english version of Windows XP.
    I'll greatly appreciate any suggestions.
    Thanks for your time.

    Which one is loaded is based on the locale of the JVM at start-up time. The locale is taken from the system locale, which on Windows is based on the region/language currently selected. You can override this using java intergreter's options, such as, in your case:
    java -Duser.language=ru -Duser.region=RU yourgrogramUsing the above settings, font.properties.ru will be used. Cyrillic characters will then be displayed properly if appropriate fonts are installed. This, however, may not work with AWT components. To be sure, use Swing -- they are better designed for rendering Unicode characters.

Maybe you are looking for

  • HT204407 It won't let me sign in. It just keeps saying I'm not connected to the Internet when I am.

    Why is my find my friends app not working at all?!   It just says that I'm not connected to the Internet but I am.

  • New iPhone 3GS will not connect to Mac

    I am trying to set up my iPhone 3GS and the instructions are very straight forward. It says to connect it to my Mac with the USB cable and it will take it from there. The problem is that the phone keeps switching on and off. the apple logo shows up f

  • Problems signing in to PSE/PRE Forum and Customer Service

    Hello-I am presently  running PSE/PRE8 on a win8 computer with 12GB memory and1TB HDD. I am searching for information on PSE/PRE12. However, I am having problems with my PW/ID. I understand that Photoshop.com has been eliminated and this is the sourc

  • Jsp & XML-XSL

    Hello. I have a device that produce XML output file( dynamically ) I need to read it by Jsp page. I able to do it using XSL but when XML changes my Jsp page is not updated. Only if i recompile jsp page i get new data Do you know some methods to get d

  • Change Account Duration for ISE Guest User can not more than 5 days

    Extending guest account duration can not more than 5 days. On portal we can change it to more than 5 days, but the account always expired after next 5 days. Email notfication sent after change duration also said the account only have 5 days of durati