fontInherit in oxy_textfield doesn't work?!
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 81
- Joined: Mon Mar 05, 2012 5:23 pm
fontInherit in oxy_textfield doesn't work?!
In Oxygen XML Author 14.2 I would like to use a special font for an oxy_textfield, but it seems, that the property "fontInherit" doesn't work. Or have I made a mistake in my CSS?
The Label is correctly displayed in DejaVuSans, the content of oxy_textfield not.
Code: Select all
msIdentifier repository {
font-family: DejaVuSans;
content:
oxy_label(text,"Bibliothek*:",width,5em)
oxy_textfield(edit,"#text",columns,40,fontInherit,true);
}
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: fontInherit in oxy_textfield doesn't work?!
Post by alex_jitianu »
Hello,
The CSS looks correct. From what I've tested I've managed to reproduce this behavior I dynamically load the DejaVuSans font using @font-face rule? I've added an issue for the dynamically loaded fonts to be used by form controls too. Please let me know if this is indeed your situation too or we should dig deeper for the cause.
Best regards,
Alex
The CSS looks correct. From what I've tested I've managed to reproduce this behavior I dynamically load the DejaVuSans font using @font-face rule? I've added an issue for the dynamically loaded fonts to be used by form controls too. Please let me know if this is indeed your situation too or we should dig deeper for the cause.
Best regards,
Alex
-
- Posts: 81
- Joined: Mon Mar 05, 2012 5:23 pm
Re: fontInherit in oxy_textfield doesn't work?!
Hi Alex,
thanks for your reply and yes, I load the font via @font-face!
By the way: it seems, that Oxygen XML 14.2 transform the sourcepath (or just the filename?) of a font in @font-face always in lowercase.
So if you have
Oxygen XML tries to load http://www.yourdomain.com/junicode.ttf, what gives me an "Not found" error in Oxygen XML. Renaming the font on the server in lowecase letters fix it. But probably this behaviour isn't intended?
Best regards,
Stefan
thanks for your reply and yes, I load the font via @font-face!
By the way: it seems, that Oxygen XML 14.2 transform the sourcepath (or just the filename?) of a font in @font-face always in lowercase.
So if you have
Code: Select all
@font-face {
font-family: "Junicode";
src:url("http://www.yourdomain.com/path/JuniCode.ttf");
font-style: normal;
}
Best regards,
Stefan
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: fontInherit in oxy_textfield doesn't work?!
Post by alex_jitianu »
Hi Stefan,
Thank you for reporting this behavior which is indeed not an intended one... I've added an issue to fix it for the next version of Oxygen.
Best regards,
Alex
Thank you for reporting this behavior which is indeed not an intended one... I've added an issue to fix it for the next version of Oxygen.
Best regards,
Alex
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service