Change Text font type


Recommended Posts

Hello there I would like to change the font type of various text on my DAQ. The command written in the sequence is a below.

Component.MultiLan.strFontName = Corbel

where Corbel is the font type I have such various font. The command mention below to change fore color and text mentioned below are working. So, what actually needs to be done to change the font of the text.

Component.MultiLan.forecolor = rgb(255,0,0)
Component.MultiLan.strText = 'Devanagari New'

Link to comment
Share on other sites

First, I am assuming you are using DAQFactory 19 and not 20. The font name property is going to be a string, so unless Corbel is a string variable you have created, you need to put it in quotes like you did with strText.

Component.MultiLan.strFontName = "Corbel"

 

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.
Note: Your post will require moderator approval before it will be visible.

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.