cancel
Showing results for 
Search instead for 
Did you mean: 

Fonts in Web Dynpro for Java

Former Member
0 Kudos

hi all,

Can any one please tell how to put our own fonts i.e

EX:Times new Roman and BOLD etc to the text that is written in the textview.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

U cant apply ur own font to anything.U can only play with sap's

predefined values provided for design property of TextView or

Label.In order to play with this property at runtime u need to

create a context variable say ctx_design of type

com.sap.ide.webdynpro.uielementdefinitions.TextViewDesign

apply it to design property of ur UI element and can use

following code to change it at runtime.


 wdContext.currentContextElement().setCtx_designWDTextViewDesign.STANDARD);

regards

Surender Dahiya

Former Member
0 Kudos

Hi Mahesh,

If you want to change the font of a Text View go to the property sheet there you will find a property called "design" . Change the design to required one, you can see the changes in the view while changing the design property.

You cannot apply the required fonts like Times new Roman apart from the available designs in design property.

Thanks & Regards,

Jhansi Miryala

nikhil_bose
Active Contributor
0 Kudos