<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>Hi Luca,</div>
<div><br>
</div>
<div>The code Insight determines the default font size according to the resolution level is https://github.com/jburel/openmicroscopy/commit/6eba7b598ebf2068c88bc280ab06316257353e81#diff-f3bb53eab5e729fb8a7cf17503b3d87eR220</div>
<div><br>
</div>
<div>Could you please tell us more what exactly custom labels are and why you need to store them out of OMERO?</div>
<div>
<div><br>
</div>
<div>
<div>Kind regards</div>
<div>Ola</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Luca Lianas <<a href="mailto:lianas@crs4.it">lianas@crs4.it</a>><br>
<span style="font-weight:bold">Reply-To: </span>OME External Developer List <<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Date: </span>Wed, 4 Feb 2015 21:45:41 +0100<br>
<span style="font-weight:bold">To: </span>"<<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a>>" <<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Subject: </span>[ome-devel] Default FontSize in ROI's text<br>
</div>
<div><br>
</div>
<div dir="ltr">Hi everyone,
<div>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 (<a href="https://moodle.org/?lang=en">https://moodle.org/?lang=en</a>) that will enable the usage of OMERO
 images within courses material and exams (I already pushed a first pull request related to this task <a href="https://github.com/openmicroscopy/openmicroscopy/pull/3432">https://github.com/openmicroscopy/openmicroscopy/pull/3432</a>).</div>
<div>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.</div>
<div>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.</div>
<div>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.</div>
<div>Thanks a lot,</div>
<div><br>
</div>
<div>Luca<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">Luca Lianas<br>
<div><span>Data Fusion - Distributed Computing</span><br>
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna<br>
POLARIS, Edificio 1, 09010 PULA (CA - Italy)<br>
<br>
<br>
Phone: 070/9250266<br>
Email: <a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ ome-devel mailing list <a href="mailto:ome-devel@lists.openmicroscopy.org.uk">
ome-devel@lists.openmicroscopy.org.uk</a> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a> </span><br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>