Graphics

 View Only
  • 1.  Set Font Size on line index

    Posted 09-23-2025 02:46

    Hi,

    i am going to set font size on line index. When there is a second line, it will change font size to script below. placing the script on setline. compiling successfully but no result on end side.

    dim font1 as xpFont
    LineIndex = 2
    font1.Size  = 65

    Rest it will be keep default with line 1 = 100



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------


  • 2.  RE: Set Font Size on line index

    Posted 09-23-2025 06:13

    Personally, I would have a second hidden text box with smaller text and just toggle visibility. 

    It's not as smart as what you are doing, but it will work and it's much simpler and reliable and will work with visual logic. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Set Font Size on line index

    Posted 09-23-2025 06:18

    Is it possible for you to share something from your magic box?



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------



  • 4.  RE: Set Font Size on line index

    Posted 09-23-2025 07:09
      |   view attached

    have done in this way. by VL



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------

    Attachment(s)



  • 5.  RE: Set Font Size on line index

    Posted 09-23-2025 07:11

    Personally I would have used bounding box height, when its double a single line you'll know its gone to 2 lines. 

    More reliable than length. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 6.  RE: Set Font Size on line index

    Posted 09-23-2025 08:49

    Yes, it is. However, I was looking for some additional ways to reduce size rather than squeeze or wrap.



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------



  • 7.  RE: Set Font Size on line index

    Posted 09-23-2025 12:01

    No I mean, bounding box size for getting the line break, not squeeze or wrapping. 

    So where you use length you should use boundingbox.height I mean rather than length. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 8.  RE: Set Font Size on line index

    Posted 09-24-2025 00:46

    Yes, that was more feasible with bounding control. Cheers!



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------



  • 9.  RE: Set Font Size on line index

    Posted 09-25-2025 00:43

    Hope to see in your "How To" series in your YT Channel 😁



    ------------------------------
    Alejandro Galvan
    LA36 LOS ANGELES TV ACCESS
    ------------------------------



  • 10.  RE: Set Font Size on line index

    Posted 09-25-2025 03:47

    yes, its already been there. with updated one ... 😁 😁



    ------------------------------
    [Wajahat] [Ali]
    [Team Lead]
    [Hum News] [Islamabad] [Pakistan]
    ------------------------------