-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
typist = scribble_typist(); | ||
typist.in(0.1, 0); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
if (!SCRIBBLE_ALLOW_GLYPH_DATA_GETTER) | ||
{ | ||
draw_text(10, 10, "SCRIBBLE_ALLOW_GLYPH_DATA_GETTER must be set to <true> for this test case"); | ||
return; | ||
} | ||
|
||
draw_clear(c_black); | ||
|
||
var _x = 10; | ||
var _y = 10; | ||
|
||
var _text = "[scale,2]Hi world[/page]oijwagow\n\ngawoijgawj egonawegh"; | ||
var _element = scribble(_text); | ||
if (keyboard_check_pressed(vk_up )) _element.page(_element.get_page()-1); | ||
if (keyboard_check_pressed(vk_down)) _element.page(_element.get_page()+1); | ||
_element.draw(_x, _y, typist); | ||
|
||
if (typist.get_state() == 1) | ||
{ | ||
var _last_glyph_data = _element.get_glyph_data(_element.get_glyph_count()-1); | ||
if (is_struct(_last_glyph_data)) | ||
{ | ||
var _tri_x = _x + _last_glyph_data.right; | ||
var _tri_y = _y + 0.5*(_last_glyph_data.top + _last_glyph_data.bottom); | ||
|
||
draw_triangle(_tri_x, _tri_y, _tri_x+20, _tri_y-10, _tri_x+20, _tri_y+10, true); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
scribble_kerning_pair_set("fnt_hebrew", 0x05D1, 0x05BC, -2); | ||
scribble_kerning_pair_set("fnt_hebrew", 0x05E4, 0x05BC, -6); | ||
scribble_kerning_pair_set("fnt_hebrew", 0x05E9, 0x05C1, -7); | ||
scribble_kerning_pair_set("fnt_hebrew", 0x05E9, 0x05C2, -7); | ||
scribble_kerning_pair_set("fnt_hebrew", 0x05EA, 0x05BC, -8); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var _element = scribble("בּ פּ שׁ שׂ תּ").scale(3).starting_format("fnt_hebrew", c_white); | ||
_element.draw(x, y); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Feather disable all | ||
/// @param element | ||
/// @param modelCacheName | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Feather disable all | ||
function __scribble_class_null_element() constructor | ||
{ | ||
static __error = function() | ||
|