-
Notifications
You must be signed in to change notification settings - Fork 14
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
Is it possible to set the font of the substituent independently #22
Comments
No it's not an option. The reason it is italic is because people use labels other than R, for example W, Y and even B. Using italics allows us to visually distinguish these from tungsten, yttrium and boron. Note if you want an abbreviation, e.g. -CO2H these will be plain font. We could add option for it but what is the use case, just you don't like it? |
You can use Abbreviations API to contract functional groups. Why do you want to generate the same picture as in the literature? Even including the |
Thank you for your reply. Not including the ; I added it by mistake. Because I want to generate the same picture as the literature to train the model, so the effect is better. Finally, I want to change by modifying the source code, but in the source code, I did not find where the settings for the substitute font are |
Okay - since this is a 1 off case I think it's best if you change your local version. You need to modify: StandardAtomGenerator.generatePseudoSymbol() |
I've add the following option:
to configure this. The superscript vs subscript I've left for now. |
I have learned a lot, thank you very much.
…------------------ 原始邮件 ------------------
发件人: "cdk/depict" <notifications@github.com>;
发送时间: 2020年7月20日(星期一) 下午5:25
收件人: "cdk/depict"<depict@noreply.github.com>;
抄送: "Miracle"<541766011@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [cdk/depict] Is it possible to set the font of the substituent independently (#22)
I've add the following option:
depictgen = depictgen.withParam(StandardGenerator.PseudoFontStyle.class, Font.PLAIN);
to configure this. The superscript vs subscript I've left for now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, there is a question recently that is very troublesome. Is it possible to set the font of the substituent separately, because the default substituent is italic, and the substituent I want to generate is a normal font. In addition, can the number in the upper right corner of the substituent be placed in the lower right corner? I don’t know where to set it. thank you very much
The text was updated successfully, but these errors were encountered: