NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 16, 2017, 12:34:56 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Like what you dislike of those things are imortant. ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: problem with Ejs 4.2 new text objects cannot display "^o" as subscript string.  (Read 6009 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: September 26, 2009, 04:03:45 am » posted from:Fiesso D\'artico,Veneto,Italy

Hi Prof,

Ejs 4.2 new text objects cannot display "^o" as subscript string, how to overcome ?

i am exploring to update to newer objects to submit the models i have made in projectile motion to http://www.compadre.org/

the codes is:

s_alpha =alphasymbol+"= "+double2String(theta,1.)+"^o" ; // to make display 2.30=vx instead of 2.3000000001

any idea how to display superscripts in Ejs 4.2 new text?


* ejs4,2text.PNG (57.58 KB, 1280x800 - viewed 280 times.)

*** There are 1 more attached files. You need to login to acces it!
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: September 26, 2009, 06:01:10 pm » posted from:Central District,,Hong Kong

Please write down where is the code: which page/tab/...etc. so that I can find your code easily.
It seems to be a bug. I would suggest you to talk to Paco directly.
You can use two strings to display what you want (need to calculate coordinate properly).
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: September 27, 2009, 08:08:27 pm » posted from:Singapore,,Singapore

i will wait for the bug fixed for Ejs 4.2 version Ejs_4.2_010909 and later Grin

very painful to redo the codes for subscripts Tongue

thanks!
Logged
fem@um.es
CoLoS
Newbie
*
Offline Offline

Posts: 5

«
Embed this message
Reply #3 on: October 04, 2009, 06:00:32 am » posted from:Murcia,Murcia,Spain

Ejs 4.2 new text objects cannot display "^o" as subscript string, how to overcome ?
any idea how to display superscripts in Ejs 4.2 new text?
Text elements can only display superscripts (and subscripts) if the "Pixel Size" property is set to true. (The default is false.) The reason is that the underlying code uses some tricks with the fonts that produce the effect of superscripts. When drawing the text in world units (something that was not possible with old elements) the rendering cannot fulfill this requirement.
Solution: Set the "Pixel Size" property of text elements to true.
Logged
Pages: [1]   Go Up
  Print  
Like what you dislike of those things are imortant. ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
When you step on the accelerator, the car "noses up"?
Kinematics
Fu-Kwun Hwang 0 15004 Last post April 08, 2005, 12:55:37 pm
by Fu-Kwun Hwang
Simulation of Track & Field event "Javelin"
Request for physics Simulations
javcoach 14 23280 Last post February 08, 2011, 09:09:19 pm
by imke24
Free Fall 3D "Modeling Physics with Easy Java Simulations" by Wolfgang/Francisco
Collaborative Community of EJS
lookang 1 14212 Last post August 03, 2009, 10:18:08 am
by lookang
Help with simulation "Feynman QED" in EJS/board:26-101-
Request for physics Simulations
jirischamberger 15 18328 Last post April 26, 2011, 01:48:37 am
by transportation
Can draw points directly on the "drawing panel" component?
Questions related to EJS
akunkeji 4 4597 Last post March 07, 2011, 10:00:34 am
by akunkeji
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 23 queries.since 2011/06/15