EPT- Change Fonts for Each CS

2 views
Skip to first unread message

JI, Jana

unread,
Mar 21, 2026, 6:22:57 PM (21 hours ago) Mar 21
to min...@googlegroups.com
Hi all,

I am a researcher at University of Illinois Urbana-Champaign. I am currently working on a research project using the Project Implicit platform and encountered an issue while implementing an EPT script in the testing phase. Specifically, I am trying to present CS stimuli as words and assign five different fonts to each CS item in EPT. However, it seems that the following line: primeStimulusCSS : {color:'#336600','font-size':'2.3em’} is overriding all font-related settings, causing all CS stimuli to appear in the same font.

I attempted to remove this line entirely, but the issue still persists, and all stimuli continue to appear with the same font. I also tried specifying fonts at the item level (e.g., within mediaArray or using HTML styling), but these changes did not seem to take effect. This makes me wonder whether the EPT extension (ep5.js) applies a single global style during rendering and does not support item-level font customization. I would really appreciate if you have any thoughts on whether it is possible to assign different fonts to individual CS stimuli in EPT? If so, what would be the correct way to implement this?

I’ve attached the EPT script in .txt format in case it is helpful for troubleshooting. Please let me know if any additional details would be useful.

Thank you very much for your help!

Best,
Jana

 

 

ept_wordcs.txt

Yoav Bar-Anan

unread,
7:22 AM (8 hours ago) 7:22 AM
to JI, Jana, min...@googlegroups.com
Hi Jana, 

In general, I did not program the task to support different styles to different items of the same category. What you tried to do doesw not work because the 'word' media object does not have style, it is only the text to be shown. 

Here are some possible solutions: 

- Try using "html" as the media type. That might allow you to set the font in a <span> like you tried with the word media. I tried it in this script, and I think it worked
- Use a different prime category for each stimulus. The feedback will be a bit challenging -- you will need some code in the debriefing page, to compute the feedback from the evaluation scores of all 10 CSs. This debriefing shows a feedback message for each prime category separately, ranking the scores by favorability; It is not what you need but it can teach you or chatgpt how to do what you need.  
- Save the words as images, and use "image" as the media type.

I hope that helps,
Yoav


--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minnojs/BN0PR11MB5725229C61EE4995145DF8DDF445A%40BN0PR11MB5725.namprd11.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages