[ome-devel] Default FontSize in ROI's text

Luca Lianas lianas at crs4.it
Wed Feb 4 20:45:41 GMT 2015


Hi everyone,
recently I started working on OMERO's web viewer in order to add some
features that we are going to use in order to develop a few module for
Moodle (https://moodle.org/?lang=en) that will enable the usage of OMERO
images within courses material and exams (I already pushed a first pull
request related to this task
https://github.com/openmicroscopy/openmicroscopy/pull/3432).
One of the features I am working on is to add the possibility to define
custom labels that will be associated to the ROIs and that won't be saved
within OMERO's database.
The task is quite simple: if the ROI has already an associated text (I'll
just have to replace the default label with the new one), things get a
little more complicated if I have to create a new text because I need to
define all the font-related properties; in particular I need to calculate
the proper FontSize with respect to image's sizes.
I noticed that OMEROinsight automatically calculates and assign the
FontSize property to ROIs' text, how does it work? I just want to reproduce
the same code using Javascript in order to make text defined using OMERO's
tools and text defined by external app look the same.
Thanks a lot,

Luca

-- 
Luca Lianas
Data Fusion - Distributed Computing
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna
POLARIS, Edificio 1, 09010 PULA (CA - Italy)


Phone: 070/9250266
Email: luca.lianas at crs4.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20150204/559056e6/attachment.html>


More information about the ome-devel mailing list