Matchstic / Xen-HTML

Unified and simplified HTML rendering
GNU General Public License v2.0
109 stars 16 forks source link

LS.DaDa.48 Font broken #239

Open marcuswildx opened 4 years ago

marcuswildx commented 4 years ago

3AB39642-B105-402F-8257-3B42BB25FF30 74C00438-6ED0-40A6-B66E-A5A5D72A3E5B 65572587-304F-4E42-9725-5208BA965A9A

Font script is failing to load on the home screen with latest update.

When i add widget in xenhtml settings it doesn’t work, also when using the ‘add widget’ button on the home screen it does not work.

When I preview the Wallpaper.html it shows the font loading correctly, but when the widget is being used on the home screen its defaulting to iOS font and not showing the font used from the Style.css

Included screenshots of before and after xenhtml update. Also included style.css of font settings.

Matchstic commented 4 years ago

Thanks for the detailed report.

Can you show me exactly how you load fonts? i.e., what's in your main HTML file, inside your css, and so forth.

In this case, I don't need the full widget, but enough to understand how fonts are being loaded in your case.

marcuswildx commented 4 years ago
LS.DaDa.48 by DaDa (@zdada9999) 公众号:阿布怪达
marcuswildx commented 4 years ago

body { margin: 0; padding: 0; font-weight:10; font-family:OdinRoundedBold; color:#f3f3f3; }

@font-face { font-family:OdinRoundedBold; src: url(Images/OdinRoundedBold.otf); }

@font-face { font-family:OdinRoundedBold; src: url(Images/OdinRoundedBold.otf); }

Widget{

   position:absolute; top:0px; left:0px; width:375px; height:667px;

}

BG{

  position:absolute; top:4%; left:12%; width:75%; height:10%; z-index:50;
  background-color:none;opacity:0;
  circle;border-radius: 15px;

}

R1{

  position:absolute; top:18%; left:9.25%; width:45.5%; height:6.9%; z-index:50;
   background-color:#000000;opacity:.15;
   box-shadow:0px 0px 0px rgba(0,0,0,0);
   Circle;border-radius:14px; 

}

R2{

  position:absolute; top:27%; left:9.25%; width:45.5%; height:6.9%; z-index:50;
   background-color:#000000;opacity:.15;
   box-shadow:0px 0px 0px rgba(0,0,0,0);
   Circle;border-radius:14px; 

}

R3{

  position:absolute; top:18%; left:57%; width:35%; height:16%; z-index:50;
   background-color:#000000;opacity:.15;
   box-shadow:0px 0px 0px rgba(0,0,0,0);
   Circle;border-radius:14px; 

}

weekday{

   position:absolute; top:640px; left:60px; width:380px; height:50px; text-align:left; z-index:90;
   font-size:12px;

}

calendarPic{

    position:absolute; top:20%; left:17.5%; width:5%; text-align:left; z-index:100;

}

Cal{

   position:absolute; top:20%; left:26%; width:100%; text-align:left; z-index:90;
   font-size:5vmim;

}

Weather{

   position:absolute; top:28.5%; left:32%; width:100%; text-align:left; z-index:100;
   font-size:5vmin;

}

weatherIcon{

    position:absolute; top:27.7%; left:19.5%; width:9%; text-align:left; z-index:100;

}

LevelDisplay{

    position:absolute; top:23.9%;left:24.75%; width:100%; text-align:center;font-size:6vmin;z-index:100;

}

BatteryImage{

    position:absolute; top:20%;left:63.75%;

width:22%; text-align:left;z-index:100;

}

marcuswildx commented 4 years ago

First comment is Wallpaper.html, second is the Style.css

marcuswildx commented 4 years ago

Something tells me the ‘xen.js’ is the culprit. Did this change on latest update of XENHTML?

Matchstic commented 4 years ago

I don’t provide a Xen.js, that’s something from your end!

In this case, it has to do with how widgets get processed before loading. I think that it’s failing to load the fonts from the relevant folder. This something to fix my end.

marcuswildx commented 4 years ago

Okay wasn’t sure. Was making a guess. Yeah I even tried to delete the extra font face script in there to see if that was the issue and didn’t work. So I assume the loading issue of the font is on the beta end of things. Sounds good thanks a lot for your time. Look forward to your fix cause my screens ugly haha 😆

marcuswildx commented 4 years ago

Hate to ask but did you happen to figure it out :(

Matchstic commented 4 years ago

Please let me know if this new build helps: https://www.dropbox.com/s/hpzx8tcrpe0l0fv/com.matchstic.xenhtml_2.0~beta1.3_iphoneos-arm.deb?dl=0

marcuswildx commented 4 years ago

Still loading default font on that build. 9A3EB3FD-0823-4D26-AF56-E0503D087DAC

Matchstic commented 4 years ago

Can you post the full widget please? Or, email me a copy at matt@incendo.ws

This is something I don’t think I can fix without an example exhibiting the issue.

On 29 May 2020, at 00:41, marcuswildx notifications@github.com wrote:

 Still loading default font on that build.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

marcuswildx commented 4 years ago

Just sent a zip.

marcuswildx commented 4 years ago

I just attempted to put the font family under each section of the widget and still nothing. Pretty much tried everything I could to trouble shoot my end to my knowledge. Good luck and thanks for doing all you do.

marcuswildx commented 4 years ago

Also, I noticed when I goto add it to xenhtml it’ll flash the normal font (dosis-bold) for a split second and revert to iOS font; or default font. Sometimes does it when I attempt to reload the widget via moving it around on the preview screen.

marcuswildx commented 4 years ago

Actually... to be quite honest. Every single one of my widgets is doing it. I just tried all of them and not a single one is loading correct fonts.

Matchstic commented 4 years ago

Unfortunately I didn’t receive your email with the widget.

Is there any on Cydia that exhibit the issue? It might be easier to give the name and repo of one, and then for me to download it.

On 29 May 2020, at 01:12, marcuswildx notifications@github.com wrote:

 Actually... to be quite honest. Every single one of my widgets is doing it. I just tried all of them and not a single one is loading correct fonts.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

marcuswildx commented 4 years ago

Yeah I don’t know why it won’t send. Never really tried to email a zip from my phone from filza.

Regardless, all my tweaks are doing it, not just that one. May be a device/install/database issue.