erich.wanker Posted September 15, 2020 Share Posted September 15, 2020 HI .. if i copy a plain-text in a empty TUniDBHTMLMemo - the Text has no font-family (in source-code) ... Can i change this ? ... i would like to have "Arial" as Standard ThanX for Help Eric Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 32 minutes ago, erich.wanker said: if i copy a plain-text in a empty TUniDBHTMLMemo - the Text has no font-family (in source-code) Hello, Can you please explain in more details? Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2020 Share Posted September 15, 2020 39 minutes ago, erich.wanker said: i would like to have "Arial" as Standard Maybe you wanted like this approach: UniDBHTMLMemo1->ClientEvents->UniEvents: function beforeInit(sender, config) { config.fontFamilies = ['Arial', 'Roboto']; sender.listeners = { initialize: function(fld, opts) { var fontSelector = fld.down('#fontSelect'), el = fontSelector.getEl(), select = el.down('select').dom; doc = Ext.get(fld.getEditorBody()); select.value = 'arial'; doc.setStyle({fontFamily: 'arial, roboto'}); } } } Link to comment Share on other sites More sharing options...
erich.wanker Posted September 15, 2020 Author Share Posted September 15, 2020 Hello Sherzod :-) nice greetings from Austria. If i write a text into the TUniDBHtml Memo - no font family is set for the entered text... When i create a PDF - the standard HTML Text will become "Times New Roman" After i select the text in the TuniDBHTMLMemo and click on "Arial" -> i have a good result in my generated PDF is where any chance to set the "Arial" as Standard-font-family - so the generated souce-code includes this font-family - and the generated PDF knows what font should be used? PS: the used reporting-tool-pdf-component has a default font “fallback” - what i cannot change to a other font - if no font is defined - it uses "Times New Roman" .. like in the old days ;-) ThanX for help Erich Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now