Re: [Phpvideopro-developers] Labels
Brought to you by:
izzy
From: Itzchak R. <izz...@qu...> - 2002-05-27 16:47:26
|
Am Mon, 2002-02-11 um 23.54 schrieb Peter Bieringer: > > That would mean to stick to a specified OS. > Sure for the shorthand solution. Guess I won't do the labels in PS but using the PHP graphics engine instead. I'm not 100% sure yet, but for now it looks like that. This will need a new option for wether to use TTF or PS Fonts (depending on the system and its support). Does anybody know some typical fonts available on most systems? E.g. "Arial", "Helvetica" and "Times New Roman" ship with every Windoze version - but not any more with Linux (copyright problems). Of course we could "force" the user to import those fonts - but I'ld feel better to give them a choice... > cdlabelgen already does some of the adjustment very well, e.g. > shrinking text to fit it into the hardwired width. I know, and I already had a look at it. A bit easier to understand is dvlabelgen (for digital video tapes - these small thingies for camcorders). My other project, phpCDLabelPS, was inspired by that. And there are also ideas for adjustment - but all based on PostScript. I just browsed the functions available in PHP concerning fonts and graphics, and I guess these will be the better choice. I wanna stick to the template idea - and with the graphics engine, every user can design his/her own "Label Template(s)" with his/her favorite graphics editor and just plug them in. Would be a bit more difficult with PostScript I guess. > Is PHP able to create Postscript code? Guess the project name PHPcdlabelPS answers this question :-) PostScript code is plain ascii, so you can generate it easily. You just have to know how it works - it's a programming language of its own (so, theoretically, you could also write C++ code with PHP :) > If yes, cdlabelgen can be ported to PHP. see above - theoretically it could. For my CDs, I prefer my own program since it reads the CD content and prints it on the cover back as well (a very useful feature for MP3 CDs ;) And for the labels, I guess the graphics solution suits better. I just think of things like adding a Dolby Logo - much easier if everything is done in graphics. Maybe it's as easy in PostScript as well - if one's used to it :-) But unfortunately, I can just be proud to have understand its basics... </izzy> -- Itzchak Rehberg http://www.qumran.org/homes/izzy/ "We have joy, we have fun, we boot Linux on our SUN..." |