Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact
English   menu-arrow-gray-horizontal.gif
Home > About the Product > Protection of the projects under Visual PHP™
Related information
Search


Video demonstration
Drag&drop in the Visual PHP™ Environment

Latest video samples:
Job Search
Company
E-VISION International s.r.o.

is looking for PHP 5 and JavaScript programmers for long-term cooperation.




More information ...
Wrote about Visual PHP™
News by e-mail
Your e-mail

Visual PHP Recommends
For Visual PHP™
(for work in both the developer and the administration interface), we recommend using the Mozilla Firefox web browser, on the basis of which the whole software is developed because of stability, complying with the W3C standards and protecting elements of the browser.

Image Text – A Component for Inserting Text as Images Written in any TTF

Let’s imagine such situation when a designer creates a sensational design and all the panel names are designed in atypical typefaces and shaded. One of options would be using a font from the common font family in the browser instead of such headings. However, this typeface will never look like it does in the original page design. If we want to retain these typefaces, the only option is to cut these headings as an image. What to do if a customer has an idea that he would like to use a smaller type size, for example, or to add another panel for which you do not have any cuts available?

A new Image Text component is available in Visual PHP™ that facilitates work when cutting any design. Thanks to this component, any text can be inserted into pages so that it has the accurate type appearance because it will be generated as an image on the side of the server, using the TTF font you select yourself and with the shading effect in addition to it.

A resulting image is an alpha transparent PNG with smoothed text; that is why this component can be used over any background. The size of a resulting image is adjusted by the component itself.

Component Properties

Basic

Text Text that will be drawn as an image.
Font A TTF file (*.ttf) that has to be loaded onto a server.
Size A font size in pixels.

Shade

Shade Colour The colour of the shade that will be displayed behind text.
Shade Size The size of a shade in pixels.
Shade Smudging This determines shade smudging in percents.
Shade Angle An angle of 0-359° that a shade will have (0 right, 90 top, 140 left, 270 bottom).

CSS

class The CSS class for an image to be generated.
style The CSS inline styles for an image to be generated.

How to Get TTF Files from Windows

Fonts are stored in the c:/windows/fonts/ folder. But the names of the fonts are not clearly arranged there, that is why it is better to use the following procedure:
  1. Open Control Panels (Start -> Control Panels).
  2. Find and open Fonts (in Windows Vista and 7, you can use search because this panel is hidden under several groups).
  3. Find the required type design (there are separate TTF files for bold and italic types and their combinations) and drag and drop it using a mouse, e.g. on the desktop or into another folder.
  4. Load this *.ttf file by means of FTP onto a server, e.g. to the /repository/layout/ directory.

How to Convert OTFs (Open Type Font)

FontForge – An opensource font editor is available (http://fontforge.sourceforge.net/). This editor is available for the Windows, Linux, and Mac OSX platforms.

Examples of Image Text Component Outputs

Algerian Font


Brush Script MT Font



Shaded Snap ITC Font
Tempus Sans ITC with Various Angles
 






NOTICE

Some properties published in this article can only be functional with the latest core version. If you have any older core version, we recommend you to update to the latest version.

Login
Free trial

for 30 days
Latest core version
Single Developer 1.7.9.680
january 20, 2012

Professional 1.7.9.680
january 20, 2012

Enterprise 1.7.9.680
january 20, 2012


Latest developer guide
Developer Guide 1.0.5
july 10, 2009 9:36:42 AM

Latest user guide
Administrator Guide 1.0.24
august 27, 2010 11:58:08 AM

Latest install script
install.php 1.9.22
april 12, 2012 6:02:40 PM

Comming up in next version
more ...

rss.gif
Support

Fotogalerie 5/10/2012
Section: Tvorba prezentací
Chyba v hromadné korespondenci, nelze odeslat příloha (nová verze 4/6/2012
Section: Bug reporty
AntiSpam obrázek 4/6/2012
Section: Programování
Chyba při opravách textů 4/4/2012
Section: Bug reporty
Admin může smazat Developera, je to ok? 3/27/2012
Section: Bug reporty
Mapa webu 3/19/2012
Section: Tvorba prezentací


rss.gif
News

Weather Component Update
november 18, 2011
Server weather.com decided to stop providing weather information for free and passed to the paid version (about $ 60 per month). For this reason, we were forced to modify the Weather component to pulling weather information from another data source, namely from the server www.worldweatheronline.com . This site also provides information about weather all around the world, but the amount of information is smaller than the original source.

For proper functionality of the Weather component please update core to version 1.7.9.638.
Added new tutorials
october 4, 2011
He added new instructions Using another HTML editor
Powered by Visual PHP ™
© 2008 - 2010 E-VISION International, s.r.o.
Product | Technical support | Version | Video exhibits | Manuals | Job Search | Contact