forked from onecoolx/picasso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
博然
committed
Oct 24, 2019
1 parent
df5d663
commit 9f0fadd
Showing
15 changed files
with
675 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,29 @@ | |
# Contact: [email protected] | ||
|
||
{ | ||
|
||
'conditions': [ | ||
['OS=="win"', { | ||
'defines': [ | ||
'WIN32', | ||
'DLL_EXPORT', | ||
'ENABLE_FAST_COPY=1', | ||
'ENABLE_SYSTEM_MALLOC=1', | ||
'__SSE2__=1', | ||
'_HAS_EXCEPTIONS=0', | ||
'_USE_MATH_DEFINES', | ||
'_CRT_SECURE_NO_WARNINGS', | ||
], | ||
}], | ||
['OS=="linux"', { | ||
'defines': [ | ||
'ENABLE_FREE_TYPE2=1', | ||
'ENABLE_FONT_CONFIG=1', | ||
], | ||
}], | ||
['OS=="macosx" or OS=="ios"', { | ||
'defines': [ | ||
'ENABLE_SYSTEM_MALLOC=1', | ||
], | ||
}], | ||
], | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
./tools/gyp/gyp --depth=./ picasso.gyp -f xcode -DOS=macosx --generator-output=proj | ||
echo "Please change dir to \"proj\" and open picasso.xcodeproj with Xcode" | ||
echo "...\n" |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
proj/picasso.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+66.1 KB
...codeproj/project.xcworkspace/xcuserdata/jipeng.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
proj/picasso.xcodeproj/xcuserdata/jipeng.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>picasso2_sw.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* Picasso - a vector graphics library | ||
* | ||
* Copyright (C) 2019 Zhang Ji Peng | ||
* Contact: [email protected] | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include "common.h" | ||
#include "convert.h" | ||
#include "gfx_font_adapter.h" | ||
#include "gfx_trans_affine.h" | ||
|
||
#if !defined(WIN32) && !ENABLE(FREE_TYPE2) | ||
|
||
// dummy font interface | ||
namespace gfx { | ||
|
||
gfx_font_adapter::gfx_font_adapter(const char* name, int charset, scalar size, scalar weight, | ||
bool italic, bool hint, bool flip, bool a, const abstract_trans_affine* mtx) { } | ||
gfx_font_adapter::~gfx_font_adapter() { } | ||
void gfx_font_adapter::active(void) { } | ||
void gfx_font_adapter::deactive(void) { } | ||
void gfx_font_adapter::add_kerning(unsigned int first, unsigned int second, scalar* x, scalar* y) { } | ||
bool gfx_font_adapter::prepare_glyph(unsigned int code) { return false; } | ||
void gfx_font_adapter::write_glyph_to(byte* buffer) { } | ||
void* gfx_font_adapter::create_storage(byte* buf, unsigned int len, scalar x, scalar y) { return NULL; } | ||
void gfx_font_adapter::destroy_storage(void*) { } | ||
void gfx_font_adapter::translate_storage(void* storage, scalar x, scalar y) { } | ||
scalar gfx_font_adapter::height(void) const { return 0; } | ||
scalar gfx_font_adapter::ascent(void) const { return 0; } | ||
scalar gfx_font_adapter::descent(void) const { return 0; } | ||
scalar gfx_font_adapter::leading(void) const { return 0; } | ||
unsigned int gfx_font_adapter::units_per_em(void) const { return 0; } | ||
unsigned int gfx_font_adapter::glyph_index(void) const { return 0; } | ||
unsigned int gfx_font_adapter::data_size(void) const { return 0; } | ||
glyph_type gfx_font_adapter::data_type(void) const { return glyph_type_invalid; } | ||
const rect& gfx_font_adapter::bounds(void) const { static rect r; return r; } | ||
scalar gfx_font_adapter::advance_x(void) const { return 0; } | ||
scalar gfx_font_adapter::advance_y(void) const { return 0; } | ||
|
||
} | ||
|
||
bool platform_font_init(void) | ||
{ | ||
return true; | ||
} | ||
|
||
void platform_font_shutdown(void) | ||
{ | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters