Revision 1797

tmp/org.txm.chartsengine.r.core/src/org/txm/stat/engine/r/RWorkspaceRenderer.java (revision 1797)
145 145
			// FIXME: tests: Unicode and charts engine font preference
146 146
			//REXP xp = workspace.eval("try("+devicename+"(\"" + name + "\", family = \"Lucida Sans Unicode\"))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
147 147
			Font font = ChartsEngine.createFont();
148
			REXP xp = workspace.eval("try("+devicename+"(\"" + name + "\", family = \"" + font.getFontName() + "\"))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
149
			//REXP xp = workspace.eval("try("+devicename+"(\"" + name + "\", family = \"" + font.getFamily() + "\"))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
148
			REXP xp = workspace.safeEval(devicename+"(\"" + name + "\", family = \"" + font.getFontName() + "\")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
149
			//REXP xp = workspace.safeEval(devicename+"(\"" + name + "\", family = \"" + font.getFamily() + "\")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
150 150
			
151 151
			
152 152
			if (xp.isString() && xp.asString() != null) { // if there's a string

Also available in: Unified diff