001 /*
002 * Font.java
003 *
004 *
005 * The Salamander Project - 2D and 3D graphics libraries in Java
006 * Copyright (C) 2004 Mark McKay
007 *
008 * This library is free software; you can redistribute it and/or
009 * modify it under the terms of the GNU Lesser General Public
010 * License as published by the Free Software Foundation; either
011 * version 2.1 of the License, or (at your option) any later version.
012 *
013 * This library is distributed in the hope that it will be useful,
014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
016 * Lesser General Public License for more details.
017 *
018 * You should have received a copy of the GNU Lesser General Public
019 * License along with this library; if not, write to the Free Software
020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021 *
022 * Mark McKay can be contacted at mark@kitfox.com. Salamander and other
023 * projects can be found at http://www.kitfox.com
024 *
025 * Created on February 20, 2004, 10:00 PM
026 */
027
028 package com.kitfox.svg;
029
030 import com.kitfox.svg.xml.StyleAttribute;
031
032 /**
033 *
034 * @author kitfox
035 */
036 public class Hkern extends SVGElement
037 {
038 String u1;
039 String u2;
040 int k;
041
042
043 protected void build() throws SVGException
044 {
045 super.build();
046
047 StyleAttribute sty = new StyleAttribute();
048
049
050 //Read glyph spacing info
051 if (getPres(sty.setName("u1"))) u1 = sty.getStringValue();
052
053 if (getPres(sty.setName("u2"))) u2 = sty.getStringValue();
054
055 if (getPres(sty.setName("k"))) k = sty.getIntValue();
056 }
057
058 public boolean updateTime(double curTime) throws SVGException
059 {
060 //Fonts can't change
061 return false;
062 }
063
064
065 }