Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Tags
    3. text
    Log in to post

    • ywpsdj

      How to code a gif that make the text flash
      General Discussion • animation text gif • • ywpsdj  

      4
      0
      Votes
      4
      Posts
      18
      Views

      monomonnik

    • mït

      SOLVED Different fonts in a text box
      General Discussion • text text formatting • • mït  

      9
      0
      Votes
      9
      Posts
      71
      Views

      mït

      Hello, @gferreira! I had thought about working word for word ... I didn’t know if it was a good idea ... but it’s really interesting what you coded! I wouldn't have found it alone! thanks! I guess this way the text would never be justified ... but it will be very useful for me! thanks!
    • MauriceMeilleur

      SOLVED Size of text box doesn't correspond exactly to fontSize
      Bugs • text fontsize size • • MauriceMeilleur  

      4
      0
      Votes
      4
      Posts
      61
      Views

      gferreira

      But that means that default linespacing = fontSize + 1? not really… it depends on the vertical metrics in the font. here’s a test with other fonts: from random import choice fontName = choice(installedFonts()) txt = FormattedString() txt.append('a', fontSize=1000, font=fontName) print(fontName) print(textSize(txt)[1]) line height is tricky see 1 2 3 4
    • RMFRT

      UNSOLVED TextBox and baseline alignment
      General Discussion • text • • RMFRT  

      5
      0
      Votes
      5
      Posts
      76
      Views

      RMFRT

      Thanks @gferreira I tried different ways to calculate the positioning of the first line in the textBox (looking for a magical match between the verticals metrics, lineHeight(), text size…) and I can never find a solution that works systematically from one font to another…
    • jansindl3r

      SOLVED How to get width of text, including metrics?
      General Discussion • text • • jansindl3r  

      4
      0
      Votes
      4
      Posts
      187
      Views

      jansindl3r

      @gferreira I also believe that you meant textSize('string')
    • ThunderNixon

      UNSOLVED Efficient way to convert all text to outlines in a multi-page doc?
      General Discussion • bezierpath text • • ThunderNixon  

      8
      0
      Votes
      8
      Posts
      429
      Views

      frederik

      mmm, generate an instance with fontTools, use that font with a path and generate the pdf? wondering if the Bad font object... error is also reported with old-style-static-fonts?
    • ThunderNixon

      SOLVED Update font family in FormattedString
      General Discussion • text • • ThunderNixon  

      2
      0
      Votes
      2
      Posts
      303
      Views

      frederik

      Setting a font in a formatted string will only be used for text appended afterwards: txt.font(...) will not alter the font attribute for existing texts in the formatted string. For each page you will need to create a fresh formatted string.
    • erik

      Setting fallback font for text in svg?
      Feature Requests • text svg • • erik  

      3
      0
      Votes
      3
      Posts
      410
      Views

      frederik

      further discussion here https://github.com/typemytype/drawbot/issues/274 also read why we dont allow embedding fonts: https://github.com/typemytype/drawbot/issues/23
    • FutureDays

      SOLVED Entering Font Properties into Existing Python Code
      General Discussion • animation text • • FutureDays  

      3
      0
      Votes
      3
      Posts
      462
      Views

      FutureDays

      Hello, Once again, thank you for being so helpful. Enjoy the day. Best. Robert
    • micahmicah

      SOLVED Typographic white space?
      General Discussion • text • • micahmicah  

      3
      0
      Votes
      3
      Posts
      511
      Views

      micahmicah

      @frederik wonderful! Thank you!
    • pixelman

      Combine words from different .txt files to create a new big text
      Tutorials • text • • pixelman  

      3
      0
      Votes
      3
      Posts
      878
      Views

      pixelman

      Hey gferreira, thankx we try to test it out tomorrow… many thanks!
    • erik

      Excellent 3D Monsters
      Code snippets • text transformations • • erik  

      1
      1
      Votes
      1
      Posts
      1274
      Views

      No one has replied