|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
fonts are the same but visually are different deppending on componentThe font settings for all components are
family=Segoe UI,name=Segoe UI,style=plain,size=12 but visually the text in a tree/textfield/titledborders are different from labels/buttons/menus. In the tree/textfield/titledborders the text looks sharper and distorced becoming less pleasing to read than in labels/buttons/menus. its suppossed to be like that? |
|
|
Re: font its the same but visually are different deppending on componentScreenshot? From: maxupixu <maxupixu@...> To: users@... Sent: Tue, December 14, 2010 4:25:55 AM Subject: font its the same but visually are different deppending on component The font settings for all components are family=Segoe UI,name=Segoe UI,style=plain,size=12 but visually the text in a tree/textfield/titledborders are different from labels/buttons/menus. In the tree/textfield/titledborders the text looks sharper and distorced becoming less pleasing to read than in labels/buttons/menus. its suppossed to be like that? -- View this message in context: http://old.nabble.com/font-its-the-same-but-visually-are-different-deppending-on-component-tp30454172p30454172.html Sent from the java.net - substance users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: font its the same but visually are different deppending on componenti just get your font policy example and added a jtextfield: ![]()
|
|
|
Re: font its the same but visually are different deppending on componentwith extra font scale:
![]()
|
|
|
Re: font its the same but visually are different deppending on componentLooks like the text field is not using the desktop anti-alias settings. Are you running the unmodified latest version (6.1) of Substance? Thanks Kirill From: maxupixu <maxupixu@...> To: users@... Sent: Tue, December 14, 2010 12:06:54 PM Subject: Re: font its the same but visually are different deppending on component i just get your font policy example and added a jtextfield: http://old.nabble.com/file/p30458320/textfield.png Kirill Grouchnikov wrote: > > Screenshot? > > > > > ________________________________ > From: maxupixu <maxupixu@...> > To: users@... > Sent: Tue, December 14, 2010 4:25:55 AM > Subject: font its the same but visually are different deppending on > component > > > > The font settings for all components are > > family=Segoe UI,name=Segoe UI,style=plain,size=12 > > but visually the text in a tree/textfield/titledborders are different from > labels/buttons/menus. > In the tree/textfield/titledborders the text looks sharper and distorced > becoming less pleasing to read > than in labels/buttons/menus. > > its suppossed to be like that? > > -- > View this message in context: > > Sent from the java.net - substance users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > -- View this message in context: http://old.nabble.com/fonts-are-the-same-but-visually-are-different-deppending-on-component-tp30454172p30458320.html Sent from the java.net - substance users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: font its the same but visually are different deppending on componentOk,
seams that substance.jar lib and substance-all.zip src code are not sync, they both came from 6.1 download link - https://substance.dev.java.net/servlets/ProjectDocumentList?collapseFolder=6320&folderID=12185) When i compile with the src code from substance-all.zip i get this: ![]() But when i compile with substance.jar lib i get this: ![]() Notice that even with substance.jar lib (that seams to have antialising in all components) the text in titleborder 1 is wrong and in titleborder 2 is ok, the only difference betwen them is: TitledBorder tb1 = new TitledBorder(new LineBorder(Color.RED),"titleborder 1"); TitledBorder tb2 = new TitledBorder("titleborder 2"); In my app i use costumized sources SubtanceTextFieldUI.java (to remove the round borders) and SubstanceTreeUI.java (to remove striping and use a background image in trees) from substance-all.zip and the rest is from the lib, so thats why only the components originated from substance-all.zip are not being antialised. Nevertheless the text in TitledBorder is ok depending on how is intanciated.
|
|
|
Re: font its the same but visually are different deppending on componentThere are custom build steps in the build.xml of Substance that inject common painting code into all UI delegates. One of the things that is injected is getting the desktop AA settings and adding those to the Graphics object before everything is painted. If you're not doing this in your own UI delegates, you will see aliased text rendering - which is expected. You can either change your build script to follow the same route or explicitly install the AA setings using the RenderingUtils class. Thanks Kirill From: maxupixu <maxupixu@...> To: users@... Sent: Wed, December 15, 2010 4:42:05 AM Subject: Re: font its the same but visually are different deppending on component Ok, seams that substance.jar lib and substance-all.zip src code are not sync, they both came from 6.1 download link - https://substance.dev.java.net/servlets/ProjectDocumentList?collapseFolder=6320&folderID=12185) When i compile with the src code from substance-all.zip i get this: http://old.nabble.com/file/p30463451/from_sub61src.png But when i compile with substance.jar lib i get this: http://old.nabble.com/file/p30463451/from_sub61lib.png Notice that even with substance.jar lib (that seams to have antialising in all components) the text in titleborder 1 is wrong and in titleborder 2 is ok, the only difference betwen them is: TitledBorder tb1 = new TitledBorder(new LineBorder(Color.RED),"titleborder 1"); TitledBorder tb2 = new TitledBorder("titleborder 2"); In my app i use costumized sources SubtanceTextFieldUI.java (to remove the round borders) and SubstanceTreeUI.java (to remove striping and use a background image in trees) from substance-all.zip and the rest is from the lib, so thats why only the components originated from substance-all.zip are not being antialised. Nevertheless the text in TitledBorder is ok depending on how is intanciated. Kirill Grouchnikov wrote: > > Looks like the text field is not using the desktop anti-alias settings. > Are you > running the unmodified latest version (6.1) of Substance? > > Thanks > Kirill > > > > > ________________________________ > From: maxupixu <maxupixu@...> > To: users@... > Sent: Tue, December 14, 2010 12:06:54 PM > Subject: Re: font its the same but visually are different deppending on > component > > > > i just get your font policy example and added a jtextfield: > > > > Kirill Grouchnikov wrote: >> >> Screenshot? >> >> >> >> >> ________________________________ >> From: maxupixu <maxupixu@...> >> To: users@... >> Sent: Tue, December 14, 2010 4:25:55 AM >> Subject: font its the same but visually are different deppending on >> component >> >> >> >> The font settings for all components are >> >> family=Segoe UI,name=Segoe UI,style=plain,size=12 >> >> but visually the text in a tree/textfield/titledborders are different >> from >> labels/buttons/menus. >> In the tree/textfield/titledborders the text looks sharper and distorced >> becoming less pleasing to read >> than in labels/buttons/menus. >> >> its suppossed to be like that? >> >> -- >> View this message in context: >>l >> >> Sent from the java.net - substance users mailing list archive at >> Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> >> > > -- > View this message in context: > > Sent from the java.net - substance users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > -- View this message in context: http://old.nabble.com/fonts-are-the-same-but-visually-are-different-deppending-on-component-tp30454172p30463451.html Sent from the java.net - substance users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: font its the same but visually are different deppending on componentInject code in the build process is completely new to me...whats the plus of this? In your build.xml and found this: <target name="augmentation" description="inject additional behavior in UI delegates"> Injection for substanceTreeUI.java its done here? : <!-- Delegate augmentation --> <delegate-update-augment verbose="true" pattern=".*UI\u002Eclass"> <classpathset dir="${substance.output.dir}" /> </delegate-update-augment> <delegate-augment verbose="true" pattern=".*UI\u002Eclass"> <classpathset dir="${substance.output.dir}" /> </delegate-augment> I dont understand what is being injected, could you make a brief explain how it is processed? or give an example? install the AA settings using the RenderingUtils class I believe anti-aliased text in 4.3 wasn't build.xml dependent as i did never had probelms before. It was using RenderingUtils.class? Should i look into 4.3 sources to see how it is installed?
|
|
|
Re: font its the same but visually are different deppending on componenthttps://laf-widget.dev.java.net/docs/how-to-change-existing-laf.html and https://laf-widget.dev.java.net/docs/how-it-works.html should be a starting point. I did this at build time to save myself from copy-pasting the same exact code in all the UI delegates. Version 4.3 was too long ago, and i cannot really say how it worked. Thanks Kirill From: maxupixu <maxupixu@...> To: users@... Sent: Thu, December 16, 2010 10:29:14 AM Subject: Re: font its the same but visually are different deppending on component Inject code in the build process is completely new to me...whats the plus of this? In your build.xml and found this: <target name="augmentation" description="inject additional behavior in UI delegates"> Injection for substanceTreeUI.java its done here? : <!-- Delegate augmentation --> <delegate-update-augment verbose="true" pattern=".*UI\u002Eclass"> <classpathset dir="${substance.output.dir}" /> </delegate-update-augment> <delegate-augment verbose="true" pattern=".*UI\u002Eclass"> <classpathset dir="${substance.output.dir}" /> </delegate-augment> I dont understand what is being injected, could you make a brief explain how it is processed? or give an example? install the AA settings using the RenderingUtils class I believe anti-aliased text in 4.3 wasn't build.xml dependent as i did never had probelms before. It was using RenderingUtils.class? Should i look into 4.3 sources to see how it is installed? Kirill Grouchnikov wrote: > > There are custom build steps in the build.xml of Substance that inject > common > painting code into all UI delegates. One of the things that is injected is > getting the desktop AA settings and adding those to the Graphics object > before > everything is painted. If you're not doing this in your own UI delegates, > you > will see aliased text rendering - which is expected. > > You can either change your build script to follow the same route or > explicitly > install the AA setings using the RenderingUtils class. > > Thanks > Kirill > > > > > > ________________________________ > From: maxupixu <maxupixu@...> > To: users@... > Sent: Wed, December 15, 2010 4:42:05 AM > Subject: Re: font its the same but visually are different deppending on > component > > > Ok, > > seams that substance.jar lib and substance-all.zip src code are not sync, > they both came from 6.1 download link - > https://substance.dev.java.net/servlets/ProjectDocumentList?collapseFolder=6320&folderID=12185) > > > When i compile with the src code from substance-all.zip i get this: > > > But when i compile with substance.jar lib i get this: > > http://old.nabble.com/file/p30463451/from_sub61lib.png > > Notice that even with substance.jar lib (that seams to have antialising in > all components) the text in titleborder 1 is wrong and in titleborder 2 is > ok, the only difference betwen them is: > > TitledBorder tb1 = new TitledBorder(new LineBorder(Color.RED),"titleborder > 1"); > TitledBorder tb2 = new TitledBorder("titleborder 2"); > > In my app i use costumized sources SubtanceTextFieldUI.java (to remove the > round borders) and SubstanceTreeUI.java (to remove striping and use a > background image in trees) from substance-all.zip and the rest is from the > lib, so thats why only the components originated from substance-all.zip > are > not being antialised. Nevertheless the text in TitledBorder is ok > depending > on how is intanciated. > > > > > Kirill Grouchnikov wrote: >> >> Looks like the text field is not using the desktop anti-alias settings. >> Are you >> running the unmodified latest version (6.1) of Substance? >> >> Thanks >> Kirill >> >> >> >> >> ________________________________ >> From: maxupixu <maxupixu@...> >> To: users@... >> Sent: Tue, December 14, 2010 12:06:54 PM >> Subject: Re: font its the same but visually are different deppending on >> component >> >> >> >> i just get your font policy example and added a jtextfield: >> >> >> >> Kirill Grouchnikov wrote: >>> >>> Screenshot? >>> >>> >>> >>> >>> ________________________________ >>> From: maxupixu <maxupixu@...> >>> To: users@... >>> Sent: Tue, December 14, 2010 4:25:55 AM >>> Subject: font its the same but visually are different deppending on >>> component >>> >>> >>> >>> The font settings for all components are >>> >>> family=Segoe UI,name=Segoe UI,style=plain,size=12 >>> >>> but visually the text in a tree/textfield/titledborders are different >>> from >>> labels/buttons/menus. >>> In the tree/textfield/titledborders the text looks sharper and distorced >>> becoming less pleasing to read >>> than in labels/buttons/menus. >>> >>> its suppossed to be like that? >>> >>> -- >>> View this message in context: >>> >>>l >>> >>> Sent from the java.net - substance users mailing list archive at >>> Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@... >>> For additional commands, e-mail: users-help@... >>> >>> >>> >>> >> >> -- >> View this message in context: >>l >> >> Sent from the java.net - substance users mailing list archive at >> Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> >> > > -- > View this message in context: > > Sent from the java.net - substance users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > -- View this message in context: http://old.nabble.com/fonts-are-the-same-but-visually-are-different-deppending-on-component-tp30454172p30475174.html Sent from the java.net - substance users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |