Source for file FontFace.php
Documentation is available at FontFace.php
* Created on 22.01.2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
* PHP versions 5.2 or better.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* This software consists of voluntary contributions made by many individuals
* and is licensed under the GPL. For more information please see
* <http://opendocumentphp.org>.
* $Id: FontFace.php 136 2007-03-02 18:02:29Z nmarkgraf $
require_once 'OpenDocumentPHP/util/ElementFragment.php';
* @author Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
* @copyright Copyright in 2006, 2007 by The OpenDocumentPHP Team
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
* @version $Revision: 136 $
* @package OpenDocumentPHP
* @since 0.5.0 - 08.02.2007
* Set the root element to 'style:font-face-decl'.
* @since 0.5.0 - 08.02.2007
$this->root = $this->domFragment->createElementNS(self :: STYLE, 'style:font-face');
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
/* ------------------- */
/* Font Family Generic */
/* ------------------- */
* Set font family generic.
* @since 0.5.0 - 08.02.2007
$this->setAttributeNS(self :: STYLE, 'style:font-family-generic', $name);
* Retrieve font family gerneric
* @since 0.5.0 - 08.02.2007
return $this->getAttributeNS(self :: STYLE, 'style:font-family-generic');
* @since 0.5.0 - 08.02.2007
* Retrieve font adornments.
* @since 0.5.0 - 08.02.2007
* @todo check if $name matches pattern: [A-Za-z][A-Za-z0-9._\-]*
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* Retreive SVG font family.
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* Retrieve SVG font variant.
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* Retrieve SVG font weight.
* @since 0.5.0 - 08.02.2007
* @todo: Matching functions this:
<attribute name="svg:font-stretch">
<value>ultra-condensed</value>
<value>extra-condensed</value>
<value>semi-condensed</value>
<value>semi-expanded</value>
<value>extra-expanded</value>
<value>ultra-expanded</value>
<attribute name="svg:font-size">
<ref name="positiveLength"/>
<attribute name="svg:unicode-range"/>
<attribute name="svg:units-per-em">
<attribute name="svg:panose-1"/>
<attribute name="svg:stemv">
<attribute name="svg:stemh">
<attribute name="svg:slope">
<attribute name="svg:cap-height">
<attribute name="svg:x-height">
<attribute name="svg:accent-height">
<attribute name="svg:ascent">
<attribute name="svg:descent">
<attribute name="svg:widths"/>
<attribute name="svg:bbox"/>
<attribute name="svg:ideographic">
<attribute name="svg:alphabetic">
<attribute name="svg:mathematical">
<attribute name="svg:hanging">
<attribute name="svg:v-ideographic">
<attribute name="svg:v-alphabetic">
<attribute name="svg:v-mathematical">
<attribute name="svg:v-hanging">
<attribute name="svg:underline-position">
<attribute name="svg:underline-thickness">
<attribute name="svg:strikethrough-position">
<attribute name="svg:strikethrough-thickness">
<attribute name="svg:overline-position">
<attribute name="svg:overline-thickness">
|