How do I install a custom font on an HTML site

I am not using flash or php - and I have been asked to add a custom font to a simple HTML layout. "KG June Bug" I have it downloaded locally - is there a simple CSS trick to accomplish this?

d3.js force layout auto zoom/scale after loading

I'm using this nice force layout from Flowingdata.com to create a network diagram. My diagram currently shows between 5 and 750 nodes with their relations. It works great with some custom...

You need to use a Theme.AppCompat theme (or descendant) with this activity

Android Studio 0.4.5 Android documentation for creating custom dialog boxes: http://developer.android.com/guide/topics/ui/dialogs.html If you want a custom dialog, you can instead display an...

Custom Preference - Button not clickable

I'm working on a settings screen and I'm using Android's Preference API to build the interface. One of the preference will be a button - and I've done it by adding a custom layout to the...

How can I change default dialog button text color in android 5

I have many alert dialogs in my app. It is a default layout but I am adding positive and negative buttons to the dialog. So the buttons get the default text color of Android 5 (green). I tried to...

Why dropdown item width is larger than spinner width in android?

I have developed a custom spinner but my spinner dropdown item is showing larger than spinner background. It is very embarrassing for users. I tried many things but I can't figure out what is the...

How to search with pdf.js?

I'm displaying a pdf file with pdf.js in my Ionic App. I do not use viewer.js and viewer.html, because I need a totally different layout. Now I have a custom search bar and I want to highlight...

What does ?attr/ mean on Android?

I am working on an example about Support Library and Toolbar, this is the code of the layout on the Android documentation <android.support.v7.widget.Toolbar android:id="@+id/my_toolbar" ...

How to set UICollectionView bottom padding and scrolling size

Hello I have working uicollectionview custom layout and i have issuesfor bottom padding and scrolling sizes. Under below picture you can see; Also top side first cell always stays on top when...

Qt5 QStyledItemDelegate on a QListView removes all the default style

I have some QIcon and QString pairs displayed in a QListview. The whole thing has been set up using the Qt Model/View Programming. I am displaying labeled icons in this QListView. Items are...

Preference Screen Custom Layout only works with second click

I have a preference screen using a 'custom layout': android:layout="@layout/currencycodes" This issue is it fails to bring up the layout on the first attempt. As you see from the animated gif...

Round corner for BottomSheetDialogFragment

I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View This is my Custom class that inflates my layout that I want to appear from bottom View...

WordPress admin: How can I display existing admin sub-menu based on user's role

I require to show an existing sub-menu item of admin menu based on a specific user role. The role is general-travel-editor. The actual menu layout is like this Travel Settings General...

How to handle drawer toggle and toolbar up when having toolbar for each fragment

I am using single activity and many fragments approach in my app Now since in my some fragments I have custom view in toolbar I decided to have separate toolbar for each fragment. How to implement...

What is the most reliable / portable way to allocate memory at low addresses on 64-bit systems?

I need to allocate large blocks of memory (to be used by my custom allocator) that fall within the first 32GB of virtual address space. I imagine that if I needed, say, 1MB blocks, I could iterate...

Recyclerview controll speed of scroll using scrollBy method

Dears I've managed to control the speed of scrolling using the scrollToPosition method via custom linear layout manager. But I've used scrollBy(int dx, int dy) method and the scroll speed is still...

RenderCustomMultiChildLayoutBox object was given an infinite size during layout. flutter error

I am new to flutter and am trying to implement custom list view in flutter. Its giving be RenderCustomMultiChildLayoutBox object was given an infinite size during layout error I am not able to...

Why CustomClipper is not working suddenly?

I'm studying clipping image as curve, but CustomClipper is not working suddenly. Only clipper property of IreneClipper not works. How can I fix it? import 'package:flutter/material.dart'; void...

Android application context configuration doesn't gets updated with the new Locale

I need to access application's localized strings when I'm not using Context related classes (Activites, Fragments, Services, Views, etc) in ViewModel or custom built classes where I keep all my...

'statusBarOrientation' was deprecated in iOS 13.0 when attempting to get app orientation

Simple put, I was relying on the following code to provide the orientation of the application. This is utilized for several reasons within the application: Per UX specification, the layout of the...

Azure B2C Userflow v2.0(SignUp and SignIn) - unable to find Userinfo endpoint

We created an application in Azure B2C to use the OIDC implicit Grant flow. We have configured the Userflow policy(SignIn and SignUp) to customize the homepage layout and to get the custom claims...

How to use View Binding on custom views

View Binding got released as part of Android Jetpack Docs: https://developer.android.com/topic/libraries/view-binding My question is, how to use view binding with custom views. Google...

MissingConstraints lint error when using Flow

I'm using the recently released constraint layout version 2.0 and they have added a new feature called Flow which basically replaces what linear layout used to do ( with more customization ). But...

Azure B2C password field text and placeholder

I have selected pt-Br language customization for my signin page flow, but some elements are not translated properly (or not translated), then i uploaded an override file with email claim display...

Multiple layouts in NextJS or conditional css import

I'm working on moving legacy app to the Nextjs. The app has two layouts: public and admin part. Every layout has it's own css files. Because of the nextjs restrictions when you can import css only...

Unable to implement KeyboardView after coping the code from AOSP. Error in xml

After the KeyboardView is deprecated, I follow the google documentation and as they stated I copied the KeyboardView and Keyboard classes to my project. Everything I set-up as recommended. The...

Issue with displaying items table without table on Perfex CRM

I am setuping custom displaying proposal items in PDF From my code, I see that is still displaying the table. $items = get_items_table_data($proposal, 'proposal', 'pdf') ...

Programmatic Custom Json Layout Log4j2

I have Java desktop client application that utilizes Log4j2 framework. JSON structure is used when logging the exceptions or infos with custom parameters. I am trying to configure the Log4j2...

How to work with error handling in fastify

I'm creating a rest api for a work project using fastify, i'm far enough into the project where I'm starting to figure out error handling in my project. However, I can't seem to get my head...

Convert GPS Coordinates to Match Custom 2d outdoor layout Image

I don't know if this is possible, but I am trying to take the image of a custom outdoor football field layout and have the players' GPS coordinates correspond to the image xand y position. This...