GSvideo, textFont, loadFont
in
Contributed Library Questions
•
8 months ago
Hello,
I try to use GSvideo and PFont but I've problem with few types. When I use GScapture few type don't display or very bad. who know why ?
I give this example to understand, the typo EastBloc is ok, with the othar the problem start
I try to use GSvideo and PFont but I've problem with few types. When I use GScapture few type don't display or very bad. who know why ?
I give this example to understand, the typo EastBloc is ok, with the othar the problem start
- import codeanticode.gsvideo.*;
GSCapture cam;
PFont ContainerRegular48, ContainerRegular96,
EastBloc ;
void setup() {
size(640,480) ;
loadPolice() ;
//cameraSetup() ;
}
void draw() {
// cameras() ;
textFont(ContainerRegular48, 48 ) ;
text("I'm here...", 100, 100 ) ;
//
textFont(ContainerRegular96, 96 ) ;
text("I'm here...", 100, 200 ) ;
//
textFont(EastBloc, 24 ) ;
text("Where is ContainerRegular", 100, 300 ) ;
}
void cameraSetup() {
cam = new GSCapture(this, 640, 480, "0");
cam.start() ;
}
void cameras() {
if( cam.available()) {
cam.read() ;
image(cam,0,0) ;
}
}
void loadPolice() {
ContainerRegular48=loadFont ("Container-Regular-48.vlw");
ContainerRegular96=loadFont ("Container-Regular-96.vlw");
EastBloc=loadFont ("EastBlocICGClosed-96.vlw");
}
If any body have an idea...I take it immediatly.
Thx
Stan le Punk
Thx
Stan le Punk
1