Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to "clone" a font from a user input

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to "clone" a font from a user input

    Hi,
    I have a font from a user input. How can I clone that?
    E.g. to make it larger or bold
    Thanks

    #2
    How about like this?
    Code:
    SimpleFont Robert = new SimpleFont();
    SimpleFont Bob = (SimpleFont)Robert.Clone();
    Bob.Bold = true;
    Bob.Size += 10;​
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      You also could just "create" a new one but read the original one's font family and size and adjust them.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        Originally posted by QuantKey_Bruce View Post
        You also could just "create" a new one but read the original one's font family and size and adjust them.
        Thank you! This is what I did.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X