Font size dependent text item size calculation

Hello there always helping hand !!
I have a requirement like this
1. Depending on the Form Co-ordinate system
2. Depending on the Font name and size of the Text Item
3. For a multiline text item
4. Given the context string to display in it
I want to calculate the optimal width and hight for that text
item.
Please give me sugestion on the calculation formulae and or
pointer to the detailed discussion....
Thanking you in anticipation
Santosh
[email protected]
null

>
Naresh Kumar Malik wrote:
> Hi
>
>
>
>
> You can use <h1> HTML tag. Here
> concatenate   '<h1>'  item_eform_reqno '</h1>' into head.
>   wd_context->set_attribute( exporting name = 'EFORM_HEAD' value = head ).
>
>
> Here attribute EFORM_HEAD is bounded to the text view element.
>
> Regards
> Naresh
This should NOT work!  The UI elements should safe encode all input values - thereby eliminating the value of any HTML tags. If you system isn't doing this already then it is a bug and if you rely on such a thing it will stop working at some point in the future.
You are basically restricted to different values available via the design parameter.  The overall font sizes come from the underlying themes and the client applications (browser or NetWeaver Business Client) that host the Web Dynpro Application.  Therefore no direct specification of the font size is possible in order to stay within the controls of theme.  If you don't like any of the designs available, you might consider altering the Portal Theme you are using - but that is a rather drastic approach.

Similar Messages

  • Different fonts in same text item....

    Hi Everyone,
    We have a requirement that we should use more than one font in the same text item. We have shortcut to toggle between the fonts (if you are familiar its NUDI used for Kannada Font). So we should make it possible that they can edit both kannada and english in the same field. And, after toggling between the fonts, previously added data should not change.
    Thanks in advance,
    Yathish

    For any fonts you will use you OAS must support it, but as I said in my previous post, you cannot have two different types of fonts in the same text item natively.
    It may be possible if you use a PJC.
    Regards,
    Tony

  • How do you set default fonts and default text box sizes on bound form fields?

    I am using an existing PDF as a template to build my form in designer.
    I am dragging my objects from the schema window to the form and when I drop it on the form it is way too big - so for every field I do this with I am left to resize and reset the font to every bound object i drop on the page!
    Is there a way to set the default font and the default dimensions of the bound text boxes I am droping on the PDF form page?
    Thanks to anyone who can help!

    iWork '09 DVD set (containing Pages '09 v4.0, Numbers '09 v2.0, and Keynote '09 v5.0) is available from Amazon for USD $20. Apple no longer provides retail store, or OS X App Store downloads. You will need to apply the Apple iWork 9.3 updater afterwards to bring these applications to their n.3 (e.g. Pages '09 v4.3) last versions. You will have an /Applications/iWork '09 folder afterwards.
    I would also launch /Applications/Utilities/Disk Utilities, select your boot drive, and verify/repair permissions — just to be on the safe side for the newly added iWork '09 applicaitons.

  • How i assign chinese font to a text item

    Hi,
    I have a chinese font and i want assign that in a text box.
    how i do that??
    plez kindely help me out..

    Is the chinese font installed in your system? If yes, then it'd come in the drop down menu under the font property of the text box item.

  • Acrobat script select paper size depends on pdf size

    Hi,
    I want to write a script if the overall image is less than 8"*10.5" then it would choose to print to 8.5"*11" paper but if it is a larger image it would set to print 11" * 17" paper.
    Following is my attempt so far.
    var aRect = this.getPageBox("Art",this.pageNum);
    var width = aRect[2] - aRect[0];
    var height = aRect[1] - aRect[3];
    var pp = this.getPrintParams();
    fv = pp.constants.flagValues;
    //pdf less than 8" * 10.5"
    if (width > 576 || width > 756) {
        pp.flags = fv.setPageSizes;
        this.print(pp);
    i think i would need to pass some parameter to setPageSizes function but not sure how to do that.
    thank you for your time

    yeah.. but try to see if there is another way
    thanks though!

  • Greek and latin on text item

    Hello everybody!
    I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
    Please, if anyone knows how do I get this tell me.
    Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
    Thank you very much!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Aluisio Aguiar ([email protected]):
    Hello everybody!
    I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
    Please, if anyone knows how do I get this tell me.
    Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
    Thank you very much!<HR></BLOCKQUOTE>
    Hello!
    Someone said that exists "nchr()" and
    "unistr()", but these functions only work in 9i.
    I need something that works in 8i.
    If anybody knows, help me please.

  • How to change font and font size of textarea item

    hi -- I have several form pages which for the most part have text items. However, I do
    have a few textarea items, and the font and font size of these are defaulting to
    something different than the text items.
    How can I change the font and font size of the textarea items, preferably in such a
    way that it will apply to all textarea items in my app?
    (And, to take a step back, where can I find the font and size definitions for these
    items? I assume it's in the CSS (??) but don't really know what to look for.)
    Thanks,
    Carol

    >
    I do have one last thing I'd like to get resolved, if possible. Both the text and textarea items are
    width 100 and height 1, but the textarea is a bit wider and taller than the text item. If possible,
    I'd like to get at least the widths to match exactly, for aesthetics. (There was a much larger
    discrepancy before the size and fonts matched...) Maybe it's just a characteristic of textareas
    that they have that extra bit of width and height... I don't know
    >
    If you look at the generated HTML source you'll see that the APEX width value ends up in 2 different attributes: size for the text field and cols for the textarea. How each of these is transformed into the dimension used to render the control obviously differs, and how either is used will also differ across browsers and platforms. Where you want control over this the best idea appears to be to ignore the width value (APEX lets you blank this out, but resets it to 30 if the definition is subsequently edited) and explicitly set the width property in CSS, as I've now done on your example using HTML Form Element Attributes. This could also be done in a style sheet using the APEX-generated item IDs (P1_TEXT etc) as selectors.
    The APEX height value is only applied to the textarea rows attribute: it has no effect on the text field. Again, how this works will be implementation-specific and is better handled explicity using CSS. (Anyway I'm doubtful about a 1 row high textarea? It doesn't affect the ability to enter more than 1 line of text. Looks confusing.)
    cols and rows are required attributes for textareas, so APEX has to generate the attributes, but we're better off specifying width and height in CSS to override the browser's computed rendering.
    (This is the first time I've put an app on apex.oracle.com... so hopefully it'll be smooth sailing for you.)Apart from not noticing that the region was cached and wondering why my changes weren't having any effect? Thought I was losing it... ;-)
    Edited by: fac586 on Jul 8, 2009 9:14 AM

  • How to change the font size of text and case in smartforms

    hi,
       could any one explain how to change the font size of text in smartforms. ex. previously i had taken P4 left aligned and C6 but now i want to decrease the font without making it bold. pl......... guide me
       secondly the value which are coming from tables are upper case but i need lower case. pl. guide
    thanking u

    check out the smart styles...create a font of ur size n use.
    Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
    You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
    You can define font size in Smartform Style.
    Smartform Styles > Charcterformat> Font --> size.
    to load the font to SAP server chk this
    Re: Adding a new font for SAPscript/SMARTFORM output
    Regards
    Vasu

  • How to change the font size of text element in smartform

    Hi
    i want to know how to change the font size of text element in smartform
    regards
    Gincy

    Hi
    You can create Smartstyles, in which you can define paragraph formats for texts and character formats for character level changes.
    Paragraph format ---> alignment, font size etc
    character format for ---> superscript, subscript.
    After creating, in your smartform, there will be a option in the text element to enter a style.
    You give the created style and you can use the paragraph and character formats i that style.
    Hope this is clear..
    Regards
    Sekar

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How Change Font or Font Size in Text Box???

    Adobe Acrobat 7
    How do I Change the Font or Font Size in Text Box that I have inserted in a previously created .pdf file.
    Could not find any info on this in Help file. Thanks for any help.

    Use the text touchup tool, select the text, and right click to change the properties. If you mean a different type of text box, then look for the same type of changes, but use the same tool you used to create the text.

  • What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    What is the best font size for text when making a book in iBooks Author? My present font is Baskerville at 20 pt.

    For what audience? What reading level? Which Flesch-Kincaid index? What type of content? How much white space? What language(s)?

  • What is maximum string size in form's text item.

    Hi:
    Is 65534 the maximum number of characters that a text item can hold? I believe this is true and then only when I use a long which is hard to handle as a string. I need to build a popup that allows a user to paste a large set of data and then I need to break the pasted information into 100 character chunks. Has anyone done this in the past and did you get around the character limit size?
    Thanks,
    Thomas

    The Help documentation seems to indicate that 65,534 is the maximum. If you think a user will exceed that limitation, you may want to consider changing your design and provide a mechanism for storing the text file as a blob in the database. If you still needed to break the text up into chunks, you could write a stored procedure that could do that.

  • Default font size for Text screen in customer document

    We use the text function to enter additional customer data for customer invoice correspondence. The data is pasted from a Word document onto an existing invoice document using menu Extras - Texts - select Correspondence then paste.
    Once pasted the tab funstion is used to line up the data.
    The default font within the 'Text' screen is different from the default font used in the correspondence. This causes a misalighnment of the text when printing the invoice.
    How do I change the default font size in the 'Text' screen. This is probably more of a techie than functional uestion. The SAP screen is SAPLSTXX (via either FB03 or FBl5N)

    ABAP

Maybe you are looking for

  • "Adobe Muse Stopped Working"

    I've been using Muse for about a month, with no problems. Today, I have repeatedly crashed with the error "Adobe Muse Stopped Working". This happens 10 minutes or so after I open Muse. It happens whether or not I have another app open. I tried closin

  • The initial heap size must be less than or equal to the maximum heap size.

    All, Please help!! I have tested my Application Client Project in WSAD on my pc and it works fine. I have 1gb RAM on my pc. When I deploy the same app on another xp pc(same as mine but 512mb RAM) I get a heap size error. Here is the exact error: Inco

  • IPhone 6 Cable/Plug "Accessory May not Be Supported"

    So, I recently bought the iPhone 6 (brand new at Best Buy) and everything was fine for two weeks. I upgraded to the latest iOS and it was all fine after that, too. But in the last week or so, when I try to charge my phone (using the cable and wall pl

  • What formula to add up the values in one column only if a box is checked in the next column?

    Hi guys, I am creating a spreadsheet for my wedding guestlist. In one column I have a number to tell me the total number of adult guests the party (e.g fried and girlfriend = 2) and then the next two colums are check boxes, one for daytime and the ne

  • Getting the File Path of file attached to Document(CV03N)

    Hi, We are migrating DOCUMENTS(Document Info Record)data from SAP 3.1i Version to SAP ECC6.0 Version. Here i want to transfer file path of file attached in 3.1i(From DRAW-FILEP) but, i can not able to find complete path of that particular file in FIL