Linux, rebgui and draw...

Discussion in 'Rebol' started by MaxV, Aug 24, 2010.

  1. MaxV

    MaxV Member

    Hi,
    I have a problem with draw and Linux. Usually the font used in Linux for DRAW are wrong, so text doesn't appear:
    Code:
    example: ['text "Hello word!"]
    view layout [ box 100x100 effect [draw example ]]
    
    It gives a blank window.
    I added:
    Code:
    example: ['text "Hello word!"]
    if (pick system/version 4) = 4 [
    	fnt1: make face/font [ 
    		name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
    		size: 12
    		]
    	os: "linux"
    	]
    if os = "linux" [ insert example reduce ['font fnt1]	]
    view layout [ box 100x100 effect [draw example ]]
    
    This solution is good, but using rebgui it doesn't work anymore.
    What can I do?
  2. Graham

    Graham Developer Staff Member

    I've never used rebgui on Linux with agg fonts ... maybe Nick has.

Share This Page