Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/05/2018 in all areas

  1. lennart

    Save tw3image to desktop?

    This we found our culprit: procedure TW3CanvasFont.ReadFontInfo; begin end; It doesnt parse the font information and expects to inherit from the container. This works fine on visual controls (TW3GraphicControl) but will naturally be a problem on a raw device context
    1 point
  2. lennart

    Save tw3image to desktop?

    Hm, this is strange. The exposed "font" property of TBitmap is just a proxy, it relays the font property of TW3Canvas - which is the HTML5 canvas for that context. The canvas/bitmap stuff was a bit tricky because under HTML5 its completely opposite of what we have in Delphi or FPC. We are used to creating a bitmap and then attaching a TCanvas to that bitmap -- but in html5 the canvas holds the data while the context delegates access. But then again, everything in the JS world is topsy turvey at times. Its a bit like going from ordinary physics to quantum physics - you can throw your old notion
    1 point
  3. lynkfs

    Save tw3image to desktop?

    afaics needs a bit of work from the dev team in the meantime this is a workable workaround LBitmap.Canvas.Context.DC.font := '68px serif'; // or 'italic bold 88px "Tangerine", serif'; LBitmap.Canvas.TextOut(10,70, 'It displays text but in small font', clblue); (or alternatively add a TCanvas.SetSize procedure or helper)
    1 point
  4. jarto

    Save tw3image to desktop?

    I'm travelling for five days, so I can't help you now. Can @lennarthelp?
    1 point
×
×
  • Create New...