Cairo__HintMetrics.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 16 Feb 2016 07:46:52 +0000
changeset 39 8af34937e1ec
parent 29 6ba06265e543
child 88 9d51db2ba641
permissions -rw-r--r--
More work for using CairoGrahicsContext for rendering views * Added GraphicsMedium>>cairoify to change from device rendering to Cairo rendering. * Handle lineWidth: 0 specially as it actually means lineWidth = 1. * Small cleanup / fixes in text displaying (this would need more work, though)

"{ Package: 'stx:goodies/libcairo' }"

"{ NameSpace: Cairo }"

SharedPool subclass:#HintMetrics
	instanceVariableNames:''
	classVariableNames:'CAIRO_HINT_METRICS_DEFAULT CAIRO_HINT_METRICS_OFF
		CAIRO_HINT_METRICS_ON'
	poolDictionaries:''
	category:'Cairo-Constants'
!

!HintMetrics class methodsFor:'initialization'!

initialize

    CAIRO_HINT_METRICS_DEFAULT := 0.
    CAIRO_HINT_METRICS_OFF := 1.
    CAIRO_HINT_METRICS_ON := 2.
! !

!HintMetrics class methodsFor:'constants'!

CAIRO_HINT_METRICS_DEFAULT

    ^CAIRO_HINT_METRICS_DEFAULT
!

CAIRO_HINT_METRICS_OFF

    ^CAIRO_HINT_METRICS_OFF
!

CAIRO_HINT_METRICS_ON

    ^CAIRO_HINT_METRICS_ON
! !


HintMetrics initialize!