erich.wanker Posted September 15, 2020 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 Quote
Sherzod Posted September 15, 2020 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? Quote
Sherzod Posted September 15, 2020 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'}); } } } Quote
erich.wanker Posted September 15, 2020 Author 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.