We can embed <style></style> to each entry in dictionary data.

To load custom fonts, place them in assets/fonts of the Android app and require them in CSS

<style>  
@font-face {  
font-family: "CMS";  
font-style: italic;  
font-weight: normal;  
src: url("file:///android_asset/fonts/ComicSansMS.ttf");  
}  
  
.className {  
 font-family: 'CMS';  
}  
  
dpc {  
line-height: 1.3;  
}  
dpc div .a {  
display: inline;  
}  
<style>  
  
  
<dpc>  
<div></div>  
<div></div>  
</dpc>

Dictionary viewer apps may apply that style to ALL other dictionaries’ entries, to avoid this, wrap the tags in a particular tag. And use a CSS selector to select it.

Qdict dictionary app for Android is an open-source one. It means you can embed fonts and CSS and build your APK.