I missed that ClassReference puts the class in quotes.  Try:

   fonts: ClassReference("JewelThemeFontInject") ;


HTH,
-Alex

On 3/6/18, 10:31 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>Hi Alex,
>
>the 4 method seems ok but I'm getting this error:
>
>[INFO] Executing MXMLC in tool group Royale with args:
>[-load-config=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/r
>oyale/JewelExample/target/compile-app-
>config.xml,
>-js-output=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/roya
>le/JewelExample/target/javascript,
>-compiler.targets=JSRoyale,SWF,
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/src/main/royale/
>App.mxml]
>/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/JewelExa
>mple/JewelTheme-
>0.9.2-SNAPSHOT.swc:defaults.css(28): col: 11 Error: ewelThemeFontInjec is
>not defined.
>
>if I unzip the theme -js.swc I can see JewelThemeFontInject.js file inside
>in the out folder (in its own package), so I think the theme SWC is ok.
>
>I put the declaration in
>
>.royale *, . royale *:before, . royale *:after {
>     -moz-box-sizing: border-box;
>     -webkit-box-sizing: border-box;
>     box-sizing: border-box;
>
>     fonts: ClassReference(JewelThemeFontInject) ;
>}
>
>so this is getting notice.
>
>but the error show the name of the class without first letter Error:
>ewelThemeFontInjec is not defined
>
>any thoughts?
>
>thanks!
>
>
>2018-03-06 18:26 GMT+01:00 Alex Harui <aha...@adobe.com.invalid>:
>
>> Only <inject_html> from classes actually linked into the final
>>application
>> will be used.
>>
>> I think there are a few choices:
>> 1) require everyone use a particular html-template
>> 2) require some bead be used
>> 3) require a different Application subclass
>> 4) try to hack it in as follows:
>>
>> In the defaults.css for Jewel, add
>>
>> .Jewel { fonts: ClassReference(JewelInjectHTML) }
>>
>> And create a JewelInjectHTML class with the desired <inject_html> on the
>> constructor.
>>
>> That will have a bit of extra overhead, but might work.
>>
>> HTH,
>> -Alex
>>
>> On 3/6/18, 8:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>> <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:
>>
>> >Hi Piotr,
>> >
>> >no, that's that I want to get in the resultant html file. I don't
>>think I
>> >understand your question, that's exactly what I'm asking, why that
>>line is
>> >not in the final HTML file, I suppose that is because is a theme file
>>and
>> >maybe the JewelThemeClasses.as is not used, but don't know how to make
>>it
>> >work
>> >
>> >thanks
>> >
>> >2018-03-06 17:06 GMT+01:00 Piotr Zarzycki <piotrzarzyck...@gmail.com>:
>> >
>> >> Link once again: <link
>> 
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0"
>> >> rel="stylesheet">
>> >>
>> >> 2018-03-06 17:06 GMT+01:00 Piotr Zarzycki
>><piotrzarzyck...@gmail.com>:
>> >>
>> >> > I meant here something else. Do you have in your head something
>>like
>> >>that
>> >> > after compilation in the html files ?
>> >> >
>> >> > <link
>> 
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0"
>> >> > rel="stylesheet">
>> >> >
>> >> > 2018-03-06 17:01 GMT+01:00 Carlos Rovira <carlosrov...@apache.org>:
>> >> >
>> >> >> Hi Piotr,
>> >> >>
>> >> >> I introduced a new line in Application.as in Jewel UI set to start
>> >> >> implementing responsiveness in mobile:
>> >> >>
>> >> >> <meta name="viewport" content="width=device-width,
>>initial-scale=1,
>> >> >> minimum-scale=1, maximum-scale=1">
>> >> >>
>> >> >> this line is ok at that level since all jewel apps could be
>> >>responsive
>> >> >>
>> >> >> that line appears ok in final html
>> >> >>
>> >> >> but the one in the theme, is not appearing in the html
>> >> >>
>> >> >> the rest seems ok with the normal script generated by Royale
>> >> >>
>> >> >>
>> >> >>
>> >> >> 2018-03-06 16:47 GMT+01:00 Piotr Zarzycki
>> >><piotrzarzyck...@gmail.com>:
>> >> >>
>> >> >> > Hi Carlos,
>> >> >> >
>> >> >> > How looks like HTML output when you compile things using that
>> >>stuff ?
>> >> >> >
>> >> >> > Thanks, Piotr
>> >> >> >
>> >> >> > 2018-03-06 16:40 GMT+01:00 Carlos Rovira
>><carlosrov...@apache.org
>> >:
>> >> >> >
>> >> >> > > Hi
>> >> >> > >
>> >> >> > > I want the theme define the typography to use, to get this I'm
>> >>using
>> >> >> the
>> >> >> > > inject_html tag in the constructor
>> >> >> > >
>> >> >> > > The only class I have in the theme is the following
>> >> >> > >
>> >> >> > >
>> >> >> > > package
>> >> >> > > {
>> >> >> > >
>> >> >> > > /**
>> >> >> > > * @private
>> >> >> > > * This class is used to link additional classes into
>> >>JewelTheme.swc
>> >> >> > > * beyond those that are found by dependecy analysis starting
>> >> >> > > * from the classes specified in manifest.xml.
>> >> >> > > */
>> >> >> > > internal class JewelThemeClasses
>> >> >> > > {
>> >> >> > > /**
>> >> >> > > * constructor.
>> >> >> > > *
>> >> >> > >          * <inject_html>
>> >> >> > >          * <link
>> 
>>>>href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
>>>>na01.safelinks.protection.outlook&data=02%7C01%7Caharui%40adobe.com%7C9
>>>>0d36aa7b58d4a8f037a08d5839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>>>>7C0%7C636559579033937825&sdata=5puVvWSyXU5Lh1gy9f9gJ1iEl0N1spEXJza%2FJG
>>>>m6Xug%3D&reserved=0.
>> com/?url=https%3A%2F%2Ffo
>> >>nts.googleapis.com%2Fcss%3Ffamily%3DLato&data=02%7C01%7Caharui%
>> 40adobe.co
>> >>m%7C335f9e4addc14bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7
>> >>C0%7C0%7C636559509319053690&sdata=yA7%2Bh88X94JpycunvMJSNuCflIoOkddb
>> ODAux
>> >>creWGM%3D&reserved=0
>> >> "
>> >> >> > > rel="stylesheet">
>> >> >> > >     * </inject_html>
>> >> >> > >          *
>> >> >> > > * @langversion 3.0
>> >> >> > > * @playerversion Flash 10.2
>> >> >> > > * @playerversion AIR 2.6
>> >> >> > > * @productversion Royale 0.9.2
>> >> >> > > */
>> >> >> > >         public function JewelThemeClasses()
>> >> >> > >         {
>> >> >> > > super();
>> >> >> > > }
>> >> >> > > }
>> >> >> > >
>> >> >> > > }
>> >> >> > >
>> >> >> > > But this is not working since I don't get anything injected in
>> >>the
>> >> >> html
>> >> >> > >
>> >> >> > > anyone knows what could be the problem?
>> >> >> > >
>> >> >> > > thanks
>> >> >> > >
>> >> >> > >
>> >> >> > > --
>> >> >> > > Carlos Rovira
>> >> >> > >
>> >>https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%
>> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708
>> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C63655950931905369
>> 
>>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> >
>> >> >> > Piotr Zarzycki
>> >> >> >
>> >> >> > Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >> >> >
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0>*
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Carlos Rovira
>> >> >>
>> >>https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%
>> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708
>> >>d58380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C63655950931905369
>> 
>>>>0&sdata=%2FNmOa%2BKcyD93kNDolxbReQZMhVrgPTzrzkl%2FYwSRGTs%3D&reserved=0
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Piotr Zarzycki
>> >> >
>> >> > Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >> >
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0>*
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Piotr Zarzycki
>> >>
>> >> Patreon:
>> >>*https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319053690&sdata=bLWNVHgcovK7nXKYzOEqBpSnDzPwzF
>> Y6k6l9ER6rkZ4%3D&reserved
>> >>=0
>> >>
>> >><https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fwww.pat
>> >>reon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>> %7C335f9e4addc1
>> >>4bb6bbb708d58380469b%7Cfa7b1b5a7b34438794aed2c178de
>> cee1%7C0%7C0%7C6365595
>> >>09319063694&sdata=o76Gym4fOsBicseiddsVm1FQHtzgLu
>> zQ5MkEqFyBckI%3D&reserved
>> >>=0>*
>> >>
>> >
>> >
>> >
>> >--
>> >Carlos Rovira
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fabout.me%2
>> >Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>> 7C335f9e4addc14bb6bbb708d5
>> >8380469b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C636559509319063694&s
>> >data=7moxBd2GSpHpn7AAtOwOD9MZSKIvjLai7e%2B5WK5BeOA%3D&reserved=0
>>
>>
>
>
>-- 
>Carlos Rovira
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2
>Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C90d36aa7b58d4a8f037a08d5
>839081a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636559579033937825&s
>data=50jZM6zOSthV%2FLV2ATtlQR3ymCzo3eKGGhk6ccYp3Fs%3D&reserved=0

Reply via email to