diff options
Diffstat (limited to 'data/objects')
-rw-r--r-- | data/objects/Makefile.am | 12 | ||||
-rw-r--r-- | data/objects/font_preview.edc | 40 |
2 files changed, 49 insertions, 3 deletions
diff --git a/data/objects/Makefile.am b/data/objects/Makefile.am index 7a2a16e11..0f80b6c4b 100644 --- a/data/objects/Makefile.am +++ b/data/objects/Makefile.am @@ -6,13 +6,14 @@ EDJE_FLAGS = -v -id $(top_srcdir)/data/objects -fd $(top_srcdir)/data/objects filesdir = $(datadir)/elementary/objects -files_DATA = test.edj multip.edj colorpreview.edj cursors.edj +files_DATA = test.edj multip.edj colorpreview.edj cursors.edj font_preview.edj EXTRA_DIST = \ test.edc \ multip.edc \ colorpreview.edc \ cursors.edc \ +font_preview.edc \ grid_bg.png \ over.png \ under.png \ @@ -24,7 +25,7 @@ test.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/test.edc \ $(top_builddir)/data/objects/test.edj - + multip.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/multip.edc \ @@ -39,6 +40,11 @@ cursors.edj: Makefile $(EXTRA_DIST) $(EDJE_CC) $(EDJE_FLAGS) \ $(top_srcdir)/data/objects/cursors.edc \ $(top_builddir)/data/objects/cursors.edj - + +font_preview.edj: Makefile $(EXTRA_DIST) + $(EDJE_CC) $(EDJE_FLAGS) \ + $(top_srcdir)/data/objects/font_preview.edc \ + $(top_builddir)/data/objects/font_preview.edj + clean-local: rm -f *.edj diff --git a/data/objects/font_preview.edc b/data/objects/font_preview.edc new file mode 100644 index 000000000..302c2e85e --- /dev/null +++ b/data/objects/font_preview.edc @@ -0,0 +1,40 @@ +color_classes { + color_class { + name: "entry_text"; + color: 0 0 0 255; + } +} + +collections { + + group { name: "font_preview"; + parts { + + /* some fonts have weird alignments, thus they overflow badly */ + part { name: "clipper"; + type: RECT; + description { + state: "default" 0.0; + } + } + + part { name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + clip_to: "clipper"; + description { + state: "default" 0.0; + color_class: "entry_text"; + text { + font: "Sans"; + min: 0 1; + size: 10; + align: 0.5 0.5; + text_class: "font_preview"; + } + } + } + } + } +} |