BOLD  or Italic text

Hi I am a beginner in the Java world
Is there a way I can make text that I append to a midlet Form bold or Italic? If so how?

Sorry, you can't use bold or italic in a form. You
should use the canvas class instead. With canvas you
can set the font using the Graphics.setFont(Font f)
method.Atleast on a StringItem you can set font like this
si = new StringItem(lbl, lbl);
si.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_MEDIUM));try also
Font.STYLE_ITALIC
Font.STYLE_PLAIN
FONT.SIZE_SMALL
FONT.SIZE_LARGEkari-matti

Similar Messages

  • How do I enable bold/italic text formatting in blog module on website?

    For some reason I can't figure out how to enable more text formatting options on our blog. We used the blog module on a muse template. I customized the module to apply fonts we used on our website. The main text on the blog is Lato.
    Link to blog: Coupar Consulting
    When we go in to write a post you can use the bold/italics options and it shows up in the edit window as shown in the screenshot below:
    The font is not correct, but because I set the font in the module to use Lato it does show as lato when you publish, see preview below (notice no bold or italic text):
    What am I missing??
    Thanks in advance!!

    Use your browsers console and inspect tool. This stuff becomes very easy.
    address,caption,cite,code,dfn,em,strong,th,var,optgroup
      font-style: inherit;
      font-weight: inherit;
    Line 34 ish in - http://www.couparconsulting.com/css/site_global.css?3869595648
    This overides the font bold style on strong.

  • Text appearing as Bold and Italic in CS4

    Hi Guys
    Whenever I create a new document and type into it the text is automatically 'bold' and 'italics', I have saved the page and opened on another computer running CS4 and the text is fine (not bold or italic). I have created a page on another computer and opened it on the troublesome one and again it is bold and italic ((
    I cannot see anything in the preferences that may cause it, I have also discarded the configuration folder which contains the preferences for the program - no good either (( So as a last resort I have re-installed Dreamweaver and it is still playing up. I guess I can re-installs the complete CS4 suite but rather not as it is going to take a while and also may not fix the problem.
    Any ideas anybody??

    I have just copied the code from the page as below and as you can see there is no bold or italic applied:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    hello
    </body>
    </html>

  • Bold text appears bold and italic

    Hi Folks,
    Can anyone please explain why this happens?
    In FW when I click the bold text button, the text appears bold but italic aswell.
    Thanks in advance

    That's unusual. Which version of Fireworks and what operating system are you using?
    If you click on the Faux Italic button, is the italic styling removed? (It should be. If not, click twice.) You might want to try quitting and restarting the application—or shutting down and restarting your computer—and see if this takes care of the problem.
    FYI: It's generally a better choice to add bolding via the Font Style dropdown menu, if that style is available within the currently selected font family.

  • Like select the icon "italic type or bold" to compose text

    like select the icon "italic type or bold" to compose text

    As I select italic or bold font when writing a message

  • BUG - in flash pro CC, 'bold' and 'italic' properties of TextFormat have no effect on rendered text

    Concise problem statement:
    If you compile with flash pro CC, and use the 'setTextFormat' method of a TextField, the 'bold' and 'italic' properties of the TextFormat argument have no effect on the rendered text. If you compile with flash pro CS6, the 'bold' and 'italic' properties work as expected.
    Apparently, with flash pro CC, the only way to make the text render correctly is to change the font name (add the suffix ' Bold', ' Italic', or ' Bold Italic'.) This means code which dynamically changes font styles only works in CS6 or CC, but not both. For example, if you use the 'bold' property the text renders bold in CS6 and regular in CC, whereas if you change the font name to add the suffix ' Bold', the text renders bold in CC and DOES NOT RENDER at all in CS6. This makes it difficult to transition a team from CS6 to CC.
    Steps to reproduce bug:
    1. Create an xfl with 2 TextFields on the stage, both with font "Trebuchet MS" and style "regular", one named boldTrueText containing the String "bold = true", one named fontNameText containing the String "fontName = Trebuchet MS Bold". Create 2 more TextFields on the stage for visual reference, both with font "Trebuchet MS", one with style "regular", one with style "bold".
    2. Add the following code to the Actions panel on frame 1:
    import flash.text.TextFormat;
    import flash.text.Font;
    var format:TextFormat = boldTrueText.getTextFormat();
    format.bold = true;
    boldTrueText.setTextFormat(format);
    format = fontNameText.getTextFormat();
    format.font = "Trebuchet MS Bold";
    fontNameText.setTextFormat(format);
    var fonts:Array = Font.enumerateFonts(), count:int = fonts.length;
    for (var i:int = 0; i < count; i++) {
        var font:Font = fonts[i];
        trace("fontName: " + font.fontName + ", fontStyle: " + font.fontStyle);
    3. Save, and compile with flash pro CS6 and flash pro CC.
    Results:
    With flash pro CS6, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CS6, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    With flash pro CC, "bold = true" renders regular, and "fontName = Trebuchet MS Bold" renders bold.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    Expected results:
    The same text is rendered in both flash pro CS6 and CC. I don't know why this behavior was changed in flash pro CC - it causes silent failures in code which dynamically changes font styles. I expected the flash pro CS6 behavior to remain the same in CC, like so:
    With flash pro CC, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    If you don't want to break backward compatibility (any further), you could make both the behaviors work in flash pro CC, like so:
    With flash pro CC, "bold = true" renders bold (font is still "Trebuchet MS"), and "fontName = Trebuchet MS Bold" renders bold also.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    I just can't believe how there is ZERO documenation for any of this.  Flash's stylesheets have fontStyle and fontWeight properties, but they only recognize regular/italic and regular/bold respectively.
    This change in Flash CC completely breaks systems built in Flash CS6, and the font naming is actually arbitrary and is not a consistant combination of font name and style (e.g. "Eras ITC" family's bold font name is "Eras Bold ITC", but the bold version of Times New Roman is "Times New Roman Bold" (with Bold at the end, rather than the middle), and what's absolutely appaling is that the font name used at runtime is not exposed anywhere in the Flash IDE!!!  In the IDE you select a font family and font style independently, which is absolutely not what's used at runtime, because it actually uses a separate, arbitrarily named field in the font file for the font name. So we can't even know from within Flash what the proper runtime name is, unless we trace it out or open the font properties details tab in Windows explorer.
    It seems that Flash CC is always using the font "Title" that can be found in the properties of the font, NOT the font name displayed in Windows Font Preview or in Flash CC.  For example, the font name for Times New Roman Bold in Windows Font Preview is just "Times New Roman", but the font title in the properties/details tab is "Times New Roman Bold".  If they made the change to allow for specific fonts to be selected, that's fine, but it completely breaks HTML support in TextFields if it's not respecting bold and italic tags.
    This may actually be a trend on the web now, if you read this: http://www.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declara tion/ , it says: "If you’ve used one of FontSquirrel’s amazing @font-face kits, then you’re familiar with this approach to setting weights and styles. The CSS provided in every kit uses a unique font-family name for each weight and style, and sets the weight and style in the @font-face declaration to normal. [...] Notice that the font-family names are unique, with each font-family name accessing the appropriate Web font files."
    But there's just no mention of this in any documentation I can find.  What the hell.
    It's also helpful to realize that font and u tags have been deprecated in HTML5, while b and i tags have been repurposed since they still retain semantic meaning apart from style: https://www.w3.org/International/questions/qa-b-and-i-tags

  • Script to make texts bold or italic

    I saw someone suggested the following code to meet the need:
    var app = new Illustrator.Application();
    var doc = app.ActiveDocument;
    var bold = doc.CharacterStyles["Bold"];
    var italic = doc.CharacterStyles["Italics"];
    var frame = doc.TextFrames[0];
    bold.ApplyTo(frame);
    italic.ApplyTo(frame);
    But it does work in my case since "doc.CharacterStyles["Bold"];" and "doc.CharacterStyles["Italics"]" declare an error message of "No such element". Is there another way that I can try to make texts bold or italic?

    look here
    http://forums.adobe.com/thread/881071?tstart=0

  • Script to make the text bold or italic

    I saw someone suggested the following code to meet the need:
    var app = new Illustrator.Application();
    var doc = app.ActiveDocument;
    var bold = doc.CharacterStyles["Bold"];
    var italic = doc.CharacterStyles["Italics"];
    var frame = doc.TextFrames[0];
    bold.ApplyTo(frame);
    italic.ApplyTo(frame);
    But it does work in my case since "doc.CharacterStyles["Bold"];" and "doc.CharacterStyles["Italics"]" declare an error message of "No such element". Is there another way that I can try to make the text bold or italic?

    look here
    http://forums.adobe.com/thread/881071?tstart=0

  • Bold and italic fonts in dynamic text fields.

    I have a dynamic text field with the text "IMAGES". The font
    is Arial, it has BOLD and ITALIC checked, and has basic Latin fonts
    embedded. Now, I use Actionscript to change the text:
    textField.text = "IMAGES";
    Suddenly the text disappears! Now, it seems to me that since
    BOLD and ITALIC are checked on the text field, changing the .text
    value should simply change the text itself, which should then be
    rendered in bold and italic, and since I have bold+italic Latin
    glyphs embedded, it should display properly. But what's clearly
    happening is that when I set the text using Actionscript, it is
    attempting to display the NORMAL font instead, and since it's not
    embedded, it won't display. I know this because if I create another
    proxy text field off the screen and embed the NORMAL Arial glyphs,
    the original text field's text will display just fine - as
    normal-weight text.
    But why is this? Do I have to use a TextFormat object to set
    the text to Bold and Italic EVERY time I want to dynamicaly change
    the text? This seems silly. I simply want my text field to be bold
    and italic every time the text changes, and NO normal text!
    Any ideas?

    I met the same problem using ActionScript3 and Flash Professional CS5. There are two problems with dynamic TextFields:
    - When you set style "Bold" for a text field in CS5, the "bold" property is not available in the TextField object in ActionScript, its defaultTextFormat.bold is alway false; I don't know if we can get this property anywhere else.
    - When you change the text of the dynamic TextField object, its style changes to normal no matter whether it was bold previously.
    This is really a bug in TextField, Adobe should fix this to implement TextField in an expected way.

  • My Mail 6.6 Won't Apply Bold or Italic to text

    My Mail 6.6 Won't Apply Bold or Italic to text – even if I switch from Rich to Plain Text in the Format menu. What is causing this? It used to work just fine…
    I'm running OSX 10.8.5, on an iMac 3.4 GHz Intel Core i7.
    Thanks for any solutions!

    This discussion suggests a solution.

  • Euclid Symbol Bold and Italic fonts not working in Indesign CS5

    Hi I created some Maths Text books about 5 years ago in an older Adobe Indesign program. I now have to re-edit the files using Indesign CS5.
    The Euclid Symbol Bold and Italic fonts i used back in 2005 now do not display in Indesign 5 when i open up the program. The other Euclid Symbol Fonts do. I think that they are all truefonts.
    I have attached an example.
    I am using a Mac running OSX 10.6.8.
    http://www.dessci.com/en/support/mathtype/tsn/tsn109.htm    <-- this is an error log from 'MathType' the guys who created the font - yet unsure what this actually means for me
    Here is the example
    fonts in the Euclid Family on my Mac

    Congratulations on fixing the problem yourself! Hopefully our article (to which you linked) was of some help in that process. Let us know if you need anything else.
    Bob Mathews
    Design Science

  • Italic text in textarea?

    please tell me how can make textarea text in italic by clicking a appropriate button.
    is that possible by using javascript??

    Hi,
    set font to the textarea...
    textarea.setFont("Times",2,10);
    0-Normal
    1-Bold
    2-Italic
    enjoy...

  • CS4 (XP Pro)--missing bold and italic fonts for PMingLiu font

    I'm working on a book that's been translated into Chinese. The Chinese text I'm using was sent to me in Microsoft Word using the PMingLiu font. While in Word, there are some characters that appear in bold and/or italics, but those disappear when I try any means of importing into ID (as in placing the file as a Word document, placing the file as rtf, or even just copying and pasting from Word).
    As I've seen mentioned in other topics on this forum, no matter what I do, I get the pink boxes that I have to highlight and change to PMingLiu (slow but not a huge problem). But I really do need the bolds and italics. I only seem to have "Regular" PMingLiu--don't have the bold and italic varieties listed in my font list.
    Are those fonts available somewhere to download?
    Thanks so much to the oh-so helpful readers of this forum!

    Microsoft Office applications as well as many other applications allow you to "bold" or "italicize" content even when the "bold" or "italic" version of the font is either not installed or in fact might not even exist. Artificial bold usually consists of stroking the character slightly in addition to filling it. Artificial italic is performed by skewing (obliqueing) the character to simulate the look of an italic style. Although these artificial techniques sometimes yield usable results, they are typically NOT supported by graphic arts programs such as InDesign, Illustrator, or Photoshop. Typically, bold and italic faces are typical of most but not all "Latin" font families but are less common for non-Latin font families.
    In your particular case, I suspect that artificial bold, italic, and/or combinations of bold and italic were used with the font in question. InDesign does "the right thing" by indicating that no such font exists. If you want to simulate bold, let the characters in question be stroked in addition to being filled. The width of the stroke will obviously depend on the point size of the text and the style of the characters. You will need to experiment a bit. For italics, skew the characters to the right; again you will need to experiment.
    Doing a quick web search, from what I can best determine, there are no bold or italic versions of PMingLiu available either for free or for paid licensing.
    - Dov

  • How to display the text as a Bold in the Text Element of a Smart Form

    Hi,
    I created one Smart Form.
    In that i created the Text element.
    I provide some data also in that.
    It is coming as a MS WORD.
    I executed my smart form.
    Customer Number:  &WA_KNA1-KUNNR&
    it display the data of the particular customer.
    But i need to display the Customer Number as BOLD or else Increase the Size.
    For this also I created one SMARTSTYLE.
    In that I created the Paragraph and Character Formats also.
    Now i assignee that SMARTSTYLE in the Output Option Tab of the Text Element also.
    But i unable to get the CUSTOMER NUMBER in Bold.
    In MS WORD we have BOLD button.
    I selected the Text and Press the BOLD button. At that time it is Highlighted.
    Whenever i press the SAVE Button.
    Then it is not saved with BOLD.
    It is coming in Normal Format.
    In the ECC 6.0.  I am unable to get the Text as a BOLD.
    This text Element is like a MS WORD.
    Can you please tell me how to display the Data with BOLD. please tell me. I am unable to get that one.
    Thank You.
    Regards,
    B. Krishna.

    Hi,
    Check where u have given BOLD. In character Format or in Paragraph format.
    In SMART FORM,
    1. Change to OLD EDITOR if u are confused with the new one.
            (This can be done by clicking the button left to new editor ).
    2. If it is PARAGRAPH FORMAT,
               Give the name of paragraph format in the editor.
                P1         &WA_KNA1-KUNNR&
        If it is CHARACTER FORMAT,
                             <C1> &WA_KNA1-KUNNR&
    Thanks,
    Nithya.

  • When printing form using Adobe Acrobat X, I get squares over my italic text

    Hi,
    I have created an Adobe Form using Adobe Acrobat XI Pro and just printed it to check whether this works and the following occured:
    - When printing my 14 page document using adobe reader everything looked great
    - When printing my 14 page document using adobe prof X (not XI !) the italic text had some (non filled, seethrough) squares throughout it. The squares are not constant (5-15 squares per sentence) and I cannot recognize a pattern. However, they appear each time I print the entire document.
    - When printing only one page of the document (that has italic text on it) it prints fine with either the free adobe reader or adobe pro X.
    Font is Verdana,Italic. Size is 8,27 pt. Data is sometimes embedded (I did not use this feature and have no idea what is means). I always use Windows. Right now windows 7 to be exact.
    One more thing: as you can see above the file was created using adobe XI. However, my company uses adobe pro X and therefore the document had to be printable using adobe pro X.
    Can someone please help me? I have put a lot of time in the design of this form and not being able to print it correctly is a real dealbreaker for using it which would mean my efforts were wasted.
    I added an example to clearify:
    Best,
    Linda

    This is all I can find in KB:
    http://kb2.adobe.com/cps/877/cpsid_87775.html#main_Known_issues_on_Windows_
    I downloaded MS hotfix and the issue still persists.
    We have to identify if this is an adobe issue or a microsoft issue.

Maybe you are looking for

  • Error while transporting data from DevBI to QualityBI

    Hi all, After transporting SD cubes,along with some warnings I received the foollowing error in BI quality system.. Master Data Table /BI0/PMATERIAL contains data: Characteristic 0MATERIAL cannot be activated                                        |

  • EDI: Partner profile not available for the Ack received

    Hi All, All the scenarios are IDOC -->XI --> File We have different scenarios of IDOC to File, where SAP sends IDOC to two (we have 5 here letu2019s say 2) diff FTP locations one say FTP1 and other FTP2 and we used 3 business systems in SLD. 1)     

  • Document types per transaction

    Hi Experts, How to know which document types are determined per transaction? Ex: what document type can be defaulted for the transactions like FB60 / FB65 etc. Please indicate the config area. warm regards marias

  • Horizontal sub-menu - can you help?

    I'd like to make a horizontal sub-menu appearing under a horiziontal root menu (rather than the usual vertical drop-down menu) - can this be done? I know I could do this type of menu using Flash but I'd rather not contain the navigation for the site

  • How can I join a community

    Hi all,  i know this may not be the right path to post this question,  but can u pl tell me how can i join a community like for ex wipro or tcs so that i can be listed there with my contribution points if i submit my piece of code.  pl tell me proced