~ubuntu-branches/ubuntu/utopic/libjlatexmath-java/utopic

« back to all changes in this revision

Viewing changes to src/org/scilab/forge/jlatexmath/SpaceAtom.java

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 14:24:03 UTC
  • mfrom: (4.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130527142403-etv7j7excnzoa71l
Tags: 1.0.2-1
* Upload to unstable
* Standards-Version updated to 3.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        public float getPixelConversion(TeXEnvironment env);
65
65
    }
66
66
 
67
 
    // TODO: UNIT_EM and UNIT_EX yield the same converters ??
68
 
 
69
67
    private static UnitConversion[] unitConversions = new UnitConversion[] {
70
68
 
71
69
        new UnitConversion() {//EM
72
70
            public float getPixelConversion(TeXEnvironment env) {
73
 
                return env.getTeXFont().getXHeight(env.getStyle(), env.getLastFontId());
 
71
                return env.getTeXFont().getEM(env.getStyle());
74
72
            }
75
73
        },
76
74
 
250
248
            else {
251
249
                int bl = blankType < 0 ? -blankType : blankType;
252
250
                Box b;
253
 
                if (bl == TeXConstants.THINMUSKIP)
254
 
                    b = Glue.get(TeXConstants.TYPE_INNER, TeXConstants.TYPE_ORDINARY, env);
255
 
                else if (bl == TeXConstants.MEDMUSKIP)
 
251
                if (bl == TeXConstants.THINMUSKIP) {
 
252
                    b = Glue.get(TeXConstants.TYPE_INNER, TeXConstants.TYPE_BIG_OPERATOR, env);
 
253
                } else if (bl == TeXConstants.MEDMUSKIP)
256
254
                    b = Glue.get(TeXConstants.TYPE_BINARY_OPERATOR, TeXConstants.TYPE_BIG_OPERATOR, env);
257
255
                else
258
256
                    b = Glue.get(TeXConstants.TYPE_RELATION, TeXConstants.TYPE_BIG_OPERATOR, env);