FLTK logo

STR #2242

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Post Text | Post File | SVN ⇄ GIT | Prev | Next ]

STR #2242

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Summary:Enable usage of FLTK fonts in cairo context (patch included)
Created By:jakob
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size  
#1 jakob
04:57 Aug 21, 2009

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
#1 jakob
04:57 Aug 21, 2009
Currently in 1.3-svn there exist no way of matching cairo fonts with FLTK ones. Also the only platform independent way of using fonts in cairo context with FLTK is through the "toy" font api (which is only supposed to be used for simple testing according to official cairo docs)

In order to use text rendering with fltk-cairo I thus propose the method
cairo_font_face_t* fl_cairo_font_reference(Fl_Font); which returns a reference to supplied FLTK font handle.

This also have the positive side effect of making cairo_test.cxx render identically on all three cairo platforms.

Patch with implementation for all platforms is attached and tested.
#2 matt
12:55 Nov 14, 2010
Not essential for the 1.3.0 release. Temporarily moved to 1.4 .  

Return to Bugs & Features | Post Text | Post File ]


Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.