reg = CreateObject("roFontRegistry")
reg.Register("pkg:/fonts/ROCKB.TTF")
reg.Register("pkg:/fonts/tahoma.ttf")
reg.Register("pkg:/fonts/tahomabd.ttf")
rockwellFont = reg.Get("Rockwell", 30, true, false)
tahomaFont = reg.Get("Tahoma", 30, false, false)
tahomaBold = reg.Get("Tahoma", 20, true, false)
fonts = reg.GetFamilies()
print "the fonts are " fonts ---this is actually showing that i'm using the Rockwell/Tahoma font family.
m.ItemSKU = {
Text: "",
TextAttrs: {
Font: tahomaBold,
Color: "#FFFF00 ",
VAlign: "Middle",
HAlign: "Center"
},
TargetRect: {
x: m.ItemSKUBackground.TargetRect.x,
y: m.ItemSKUBackground.TargetRect.y + 5
w: m.ItemSKUBackground.TargetRect.w,
h: m.ItemSKUBackground.TargetRect.h - 5
}
}
tahomaFont = reg.Get("Tahoma", 30, false, false)
tahomaBold = reg.Get("Tahoma", 20, true, false)
"TheEndless" wrote:
On a side note, if you're planning on publishing the channel publicly, you may want to check the licensing for the fonts you're using to ensure you're allowed to distribute them with the channel.
reg = CreateObject("roFontRegistry")
reg.Register("pkg:/fonts/BRITANIC.TTF")
BritBold = reg.Get("Britannic Bold", 20, true, false)
...
m.ItemSKU = {
Text: "",
TextAttrs: {
Font: BritBold,
Color: "#FFFF00 ",
VAlign: "Middle",
HAlign: "Center"
},
TargetRect: {
x: m.ItemSKUBackground.TargetRect.x,
y: m.ItemSKUBackground.TargetRect.y + 5
w: m.ItemSKUBackground.TargetRect.w,
h: m.ItemSKUBackground.TargetRect.h - 5
}
}
"NewManLiving" wrote:
BritBold = reg.Get("Britannic Bold", 20, true, false)
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!