2022-03-06 12:07:20 +01:00
|
|
|
Class {
|
|
|
|
#name : #DiyaFontGlyph,
|
|
|
|
#superclass : #Rectangle,
|
|
|
|
#instVars : [
|
|
|
|
'advance',
|
|
|
|
'bearing',
|
2022-03-17 00:32:19 +01:00
|
|
|
'tex'
|
2022-03-06 12:07:20 +01:00
|
|
|
],
|
|
|
|
#pools : [
|
|
|
|
'OpenGLConstants',
|
|
|
|
'OpenGLTypes'
|
|
|
|
],
|
|
|
|
#category : #'Diya-Fonts'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaFontGlyph >> advance [
|
|
|
|
^ advance
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaFontGlyph >> advance: anObject [
|
|
|
|
advance := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaFontGlyph >> bearing [
|
|
|
|
^ bearing
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaFontGlyph >> bearing: anObject [
|
|
|
|
bearing := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
2022-03-17 00:32:19 +01:00
|
|
|
DiyaFontGlyph >> tex [
|
|
|
|
^ tex
|
2022-03-06 12:07:20 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
2022-03-17 00:32:19 +01:00
|
|
|
DiyaFontGlyph >> tex: anObject [
|
|
|
|
tex := anObject
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaFontGlyph >> texcoord [
|
|
|
|
^ (Rectangle origin: (self origin/ (tex extent) ) asFloatPoint corner: ((self corner) / (tex extent)) asFloatPoint ).
|
2022-03-06 12:07:20 +01:00
|
|
|
]
|