diff --git a/r2-testapp/src/main/java/org/readium/r2/testapp/epub/UserSettings.kt b/r2-testapp/src/main/java/org/readium/r2/testapp/epub/UserSettings.kt
index 29dcfafc..7c06f4eb 100644
--- a/r2-testapp/src/main/java/org/readium/r2/testapp/epub/UserSettings.kt
+++ b/r2-testapp/src/main/java/org/readium/r2/testapp/epub/UserSettings.kt
@@ -35,7 +35,7 @@ class UserSettings(var preferences: SharedPreferences, val context: Context, pri
lateinit var resourcePager: R2ViewPager
private val appearanceValues = listOf("readium-default-on", "readium-sepia-on", "readium-night-on")
- private val fontFamilyValues = listOf("Original", "PT Serif", "Roboto", "Source Sans Pro", "Vollkorn", "OpenDyslexic")
+ private val fontFamilyValues = listOf("Original", "PT Serif", "Roboto", "Source Sans Pro", "Vollkorn", "OpenDyslexic", "AccessibleDfA", "IA Writer Duospace")
private val textAlignmentValues = listOf("justify", "start")
private val columnCountValues = listOf("auto", "1", "2")
diff --git a/r2-testapp/src/main/java/org/readium/r2/testapp/library/LibraryActivity.kt b/r2-testapp/src/main/java/org/readium/r2/testapp/library/LibraryActivity.kt
index 6351eb10..6b2a0da7 100644
--- a/r2-testapp/src/main/java/org/readium/r2/testapp/library/LibraryActivity.kt
+++ b/r2-testapp/src/main/java/org/readium/r2/testapp/library/LibraryActivity.kt
@@ -134,12 +134,12 @@ open class LibraryActivity : AppCompatActivity(), BooksAdapter.RecyclerViewClick
preferences = getSharedPreferences("org.readium.r2.settings", Context.MODE_PRIVATE)
- val s = ServerSocket(0)
+ val s = ServerSocket(if (DEBUG) 8080 else 0)
s.localPort
s.close()
localPort = s.localPort
- server = Server(localPort)
+ server = Server(localPort, applicationContext)
val properties = Properties()
val inputStream = this.assets.open("configs/config.properties")
@@ -643,12 +643,6 @@ open class LibraryActivity : AppCompatActivity(), BooksAdapter.RecyclerViewClick
if (DEBUG) Timber.e(e)
}
if (server.isAlive) {
-
- // Add Resources from R2Navigator
- server.loadReadiumCSSResources(assets)
- server.loadR2ScriptResources(assets)
- server.loadR2FontResources(assets, applicationContext)
-
// // Add your own resources here
// server.loadCustomResource(assets.open("scripts/test.js"), "test.js")
// server.loadCustomResource(assets.open("styles/test.css"), "test.css")
@@ -657,8 +651,6 @@ open class LibraryActivity : AppCompatActivity(), BooksAdapter.RecyclerViewClick
server.loadCustomResource(assets.open("Search/mark.js"), "mark.js", Injectable.Script)
server.loadCustomResource(assets.open("Search/search.js"), "search.js", Injectable.Script)
server.loadCustomResource(assets.open("Search/mark.css"), "mark.css", Injectable.Style)
- server.loadCustomResource(assets.open("scripts/crypto-sha256.js"), "crypto-sha256.js", Injectable.Script)
- server.loadCustomResource(assets.open("scripts/highlight.js"), "highlight.js", Injectable.Script)
isServerStarted = true
}
diff --git a/r2-testapp/src/main/res/values/strings.xml b/r2-testapp/src/main/res/values/strings.xml
index 690b3f6b..4b2ccdc0 100644
--- a/r2-testapp/src/main/res/values/strings.xml
+++ b/r2-testapp/src/main/res/values/strings.xml
@@ -142,6 +142,8 @@
- Source Sans Pro
- Vollkorn
- OpenDyslexic
+ - AccessibleDfA
+ - IA Writer Duospace