web fonts in jsclient
Alain Stouder Omnis
omnis at smartway.ch
Mon Jun 7 13:35:22 UTC 2021
Thanks Andrew.
It’s working now.
I bet that customizing CSS beyond the font family means understanding what Omnis does when a field has the focus.
—
Learn something new every day !
> On 28 May 2021, at 20:19, Andrew Stolarz <stolarz at gmail.com> wrote:
>
> Alain,
>
> Absolutely you can use custom fonts or styles in the JSclient. Using fonts
> hosted on a CDN would be simplest. I use a lot of bootstrap CSS.
>
>
>
> 1. Here is a random CDN font I found online, and it needs to be placed into
> your remote form html page.
>
>
> <link href="http://fonts.cdnfonts.com/css/typography-times-2"
> rel="stylesheet">
>
>
>
>
>
> 2. Then in your user.css file ('html/css' folder in the main Omnis Studio
> folder), you need to create a new style.
>
> Note, don't forget to add the !important to override the Omnis style.
>
>
> ie.
>
> .typographyfont {
> font-family: 'Typography times', sans-serif !important;
> }
>
>
>
>
> 3. Then on your field in your remoteform in Omnis, you would set
> $cssclassname to: typographyfont
>
>
>
> Andrew
>
>> On Fri, May 28, 2021 at 4:20 AM Alain Stouder Omnis <omnis at smartway.ch>
>> wrote:
>>
>> Hello all,
>>
>> I’m playing with JSClient in 10.2 and trying to figure out how to
>> customize CSS and use web fonts from Google.
>>
>> Has anyone succeeded in customizing remote forms with 10.2 ?
>>
>> Thanks,
>> Alain
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list