Mercurial > MadButterfly
comparison nodejs/font.cc @ 1067:7b4e80ab671a openvg
merge from default branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 12:25:56 +0800 |
parents | 586e50f82c1f |
children |
comparison
equal
deleted
inserted
replaced
630:bd18951b51d5 | 1067:7b4e80ab671a |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
1 #include <v8.h> | 3 #include <v8.h> |
2 #include "mbfly_njs.h" | 4 #include "mbfly_njs.h" |
3 | 5 |
4 extern "C" { | 6 extern "C" { |
5 #include <mb.h> | 7 #include <mb.h> |
60 Handle<FunctionTemplate> temp; | 62 Handle<FunctionTemplate> temp; |
61 Handle<ObjectTemplate> inst_temp; | 63 Handle<ObjectTemplate> inst_temp; |
62 | 64 |
63 temp = FunctionTemplate::New(); | 65 temp = FunctionTemplate::New(); |
64 temp->SetClassName(String::New("font_face")); | 66 temp->SetClassName(String::New("font_face")); |
65 | 67 |
66 inst_temp = temp->InstanceTemplate(); | 68 inst_temp = temp->InstanceTemplate(); |
67 inst_temp->SetInternalFieldCount(1); | 69 inst_temp->SetInternalFieldCount(1); |
68 | 70 |
69 xnjsmb_font_face_temp = Persistent<FunctionTemplate>::New(temp); | 71 xnjsmb_font_face_temp = Persistent<FunctionTemplate>::New(temp); |
70 } | 72 } |
71 | 73 |
72 /*! \brief Add properties to the template of runtime objects. | 74 /*! \brief Add properties to the template of runtime objects. |
73 */ | 75 */ |