New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shape font #3890
Shape font #3890
Conversation
@will-moore: did you have a chance to look at it? |
NB: This is against local server (not rebuilt) so if this needs a server build then I'll test again (tomorrow!) |
@jburel: Wondered if this needs relisting or fixing. |
Fixing!! |
@will-moore: how did you set the font size? |
Image from test 2 will show the issue. |
@jburel Yes, with the roi.py script attached to the ticket above. |
@will-moore: thanks found the source of the problem: conversion issue |
The font size should now be correctly handled This is a difference between insight and web in the text display: location is not the same |
Test 1
As expected Test 2
ROIs did not display when Measurement Tool opened - had to select a ROI before they showed on the image. Test 3
ROIs showed on image when viewer opened before the measurement tool was opened. Comment from Will:
None of the fonts are consistently displayed either within Insight or between Insight and Web.
See screenshot below. Serious screwed behaviour here. |
@gusferguson: As indicated in a previous comment, the location of the text is another problem. |
The reason that the ROIs aren't displayed in web or Insight when image ID 9460 is opened is because there are no shapes on the default Z / T plane. When you select a ROI/shape (as you did for Insight) then they are displayed (works for web too, see screenshot). So, it seems that that apart from text placement which is a known issue (and maybe choice of font-family), this PR is good to merge. |
@@ -161,7 +161,9 @@ public Color getFill() | |||
Shape shape = (Shape) asIObject(); | |||
RInt value = shape.getFillColor(); | |||
if (value == null) return DEFAULT_FILL_COLOUR; | |||
return new Color(value.getValue(), true); | |||
Color c = new Color(value.getValue(), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB: seems like this might be a candidate for either a change to the existing Color
constructor or a new one with another boolean flag lenient
, etc.
In this PR, fix the problem reported on forum see https://trac.openmicroscopy.org.uk/ome/ticket/12936
To test this PR:
Project-user-3/archivedv
Test 1
Test 2
Test 3