Jump to content

TUniDBHTMLMemo - Standard Font ?


erich.wanker

Recommended Posts

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

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"

editor_vc_pdf.thumb.jpg.078f014665c5f0859483a647a7991b93.jpg

 

 

After i select the text in the TuniDBHTMLMemo and click on "Arial" -> i have a good result in my generated PDF

editor_vs_pdf_2.jpg.8d1ae3a54e82f948f1968543266bcd4f.jpg

 

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...